mirror of
https://github.com/MatMoul/quickdial-webext.git
synced 2025-12-16 08:53:13 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5bc78f7da6 | |||
| 67fea9aa9c | |||
| c68d2d4cfb | |||
| f07e530446 |
@@ -13,6 +13,18 @@ app.init = function(){ // Init module
|
|||||||
app.Bookmarks.initListener();
|
app.Bookmarks.initListener();
|
||||||
app.ContextMenus.initMenu();
|
app.ContextMenus.initMenu();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Start page workaround :
|
||||||
|
setTimeout(function(){
|
||||||
|
browser.tabs.query({}).then( function(tabs) {
|
||||||
|
tabs.forEach(function(itm){
|
||||||
|
if(itm.url=='about:blank'){
|
||||||
|
browser.tabs.update(itm.id, {url: browser.extension.getURL('dial')});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}, 500);
|
||||||
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -346,6 +346,7 @@ dial.initGrid = function(){
|
|||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if(dial.page == 0) dial.page = 1;
|
||||||
var index = (dial.page - 1) * (app.settings.grid.rows * app.settings.grid.columns) + +(ev.target.parentElement.getAttribute('gridindex'));
|
var index = (dial.page - 1) * (app.settings.grid.rows * app.settings.grid.columns) + +(ev.target.parentElement.getAttribute('gridindex'));
|
||||||
if(app.settings.grid.backNode && dial.path != '/') index -= dial.page;
|
if(app.settings.grid.backNode && dial.path != '/') index -= dial.page;
|
||||||
ev.dataTransfer.setData("text/plain", JSON.stringify({parentId: app.node.id, index: index}));
|
ev.dataTransfer.setData("text/plain", JSON.stringify({parentId: app.node.id, index: index}));
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"name": "Quick Dial",
|
"name": "Quick Dial",
|
||||||
"version": "0.1.15",
|
"version": "0.1.17",
|
||||||
"author": "MatMoul",
|
"author": "MatMoul",
|
||||||
"homepage_url": "https://github.com/MatMoul/quickdial-webext",
|
"homepage_url": "https://github.com/MatMoul/quickdial-webext",
|
||||||
"developer": {
|
"developer": {
|
||||||
|
|||||||
Reference in New Issue
Block a user