electron/atom/renderer/lib/chrome-api.coffee

11 lines
229 B
CoffeeScript
Raw Normal View History

url = require 'url'
chrome = window.chrome = window.chrome || {}
chrome.extension =
getURL: (path) ->
url.format
protocol: location.protocol
slashes: true
hostname: location.hostname
pathname: path