mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-16 11:36:20 +02:00
Revert "remove tab permission."
This reverts commit c1ef106469
.
Conflicts:
src/eventPage.js
src/manifest.json
This commit is contained in:
@ -3,4 +3,19 @@ chrome.browserAction.onClicked.addListener(function(){
|
||||
url: chrome.extension.getURL('index.html'),
|
||||
selected: true
|
||||
});
|
||||
});
|
||||
|
||||
chrome.tabs.onCreated.addListener(function (tab) {
|
||||
console.log('created', arguments)
|
||||
if (tab.url === 'chrome://newtab/') {
|
||||
chrome.tabs.update(tab.id, {
|
||||
url: chrome.extension.getURL('index.html')
|
||||
}, function callback() {
|
||||
console.log('ho gaya');
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
chrome.tabs.onUpdated.addListener(function () {
|
||||
console.log('updated', arguments)
|
||||
});
|
Reference in New Issue
Block a user