mirror of
https://github.com/electron/electron.git
synced 2026-01-25 07:18:18 -05:00
11 lines
229 B
CoffeeScript
11 lines
229 B
CoffeeScript
url = require 'url'
|
|
|
|
chrome = window.chrome = window.chrome || {}
|
|
chrome.extension =
|
|
getURL: (path) ->
|
|
url.format
|
|
protocol: location.protocol
|
|
slashes: true
|
|
hostname: location.hostname
|
|
pathname: path
|