Add support for chrome.extension API in devtools extension.

This commit is contained in:
Cheng Zhao 2014-08-28 12:24:52 +08:00
parent 39b98b0e4d
commit 8051ad8b2a
5 changed files with 19 additions and 1 deletions

View file

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