Convert all source files to JavaScript
This commit is contained in:
parent
403870a27e
commit
1f9691ae13
144 changed files with 11211 additions and 7301 deletions
16
atom/renderer/lib/chrome-api.js
Normal file
16
atom/renderer/lib/chrome-api.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
var chrome, url;
|
||||
|
||||
url = require('url');
|
||||
|
||||
chrome = window.chrome = window.chrome || {};
|
||||
|
||||
chrome.extension = {
|
||||
getURL: function(path) {
|
||||
return url.format({
|
||||
protocol: location.protocol,
|
||||
slashes: true,
|
||||
hostname: location.hostname,
|
||||
pathname: path
|
||||
});
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue