Making extensions/chromium/extension-router.js adhere to the style guide
This commit is contained in:
parent
c29350219e
commit
8d2068dc6f
@ -18,6 +18,7 @@ limitations under the License.
|
|||||||
/* globals chrome */
|
/* globals chrome */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
(function ExtensionRouterClosure() {
|
(function ExtensionRouterClosure() {
|
||||||
var VIEWER_URL = chrome.extension.getURL('content/web/viewer.html');
|
var VIEWER_URL = chrome.extension.getURL('content/web/viewer.html');
|
||||||
var CRX_BASE_URL = chrome.extension.getURL('/');
|
var CRX_BASE_URL = chrome.extension.getURL('/');
|
||||||
@ -102,11 +103,11 @@ limitations under the License.
|
|||||||
return { redirectUrl: url };
|
return { redirectUrl: url };
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
types: ['main_frame', 'sub_frame'],
|
types: ['main_frame', 'sub_frame'],
|
||||||
urls: schemes.map(function(scheme) {
|
urls: schemes.map(function(scheme) {
|
||||||
// Format: "chrome-extension://[EXTENSIONID]/<scheme>*"
|
// Format: "chrome-extension://[EXTENSIONID]/<scheme>*"
|
||||||
return CRX_BASE_URL + scheme + '*';
|
return CRX_BASE_URL + scheme + '*';
|
||||||
})
|
})
|
||||||
}, ['blocking']);
|
}, ['blocking']);
|
||||||
|
|
||||||
chrome.runtime.onMessage.addListener(function(message, sender) {
|
chrome.runtime.onMessage.addListener(function(message, sender) {
|
||||||
|
Loading…
Reference in New Issue
Block a user