mirror of
https://github.com/MatMoul/quickdial-webext.git
synced 2026-02-25 20:27:47 +00:00
Fix: Replace 'dial' with 'dial.html' in URL paths and context menu patterns
This commit is contained in:
@@ -6,7 +6,7 @@ app.init = function(){ // Init module
|
|||||||
browser.runtime.sendMessage({ cmd: app.Messages.Commands.settingsChanged });
|
browser.runtime.sendMessage({ cmd: app.Messages.Commands.settingsChanged });
|
||||||
browser.browserAction.onClicked.addListener(function(e){
|
browser.browserAction.onClicked.addListener(function(e){
|
||||||
if(app.settings.openQuickDialInNewPage) browser.tabs.create({});
|
if(app.settings.openQuickDialInNewPage) browser.tabs.create({});
|
||||||
else browser.tabs.update(e.id, {url: '/dial'}).then();
|
else browser.tabs.update(e.id, {url: '/dial.html'}).then();
|
||||||
});
|
});
|
||||||
browser.runtime.sendMessage({ cmd: app.Messages.Commands.gridNodesLoaded });
|
browser.runtime.sendMessage({ cmd: app.Messages.Commands.gridNodesLoaded });
|
||||||
app.ContextMenus.initMenu();
|
app.ContextMenus.initMenu();
|
||||||
@@ -290,7 +290,7 @@ app.ContextMenus.initMenu = function(){ // (Called from app.init) Init context m
|
|||||||
browser.contextMenus.create({
|
browser.contextMenus.create({
|
||||||
id: "pagemenu",
|
id: "pagemenu",
|
||||||
title: "Quick Dial",
|
title: "Quick Dial",
|
||||||
documentUrlPatterns: [ 'moz-extension://*/dial', 'moz-extension://*/dial?*' ],
|
documentUrlPatterns: [ 'moz-extension://*/dial.html', 'moz-extension://*/dial.html?*' ],
|
||||||
contexts: ["page"]
|
contexts: ["page"]
|
||||||
});
|
});
|
||||||
browser.contextMenus.create({
|
browser.contextMenus.create({
|
||||||
@@ -330,7 +330,7 @@ app.ContextMenus.initMenu = function(){ // (Called from app.init) Init context m
|
|||||||
browser.contextMenus.create({
|
browser.contextMenus.create({
|
||||||
id: "itemmenu",
|
id: "itemmenu",
|
||||||
title: "Quick Dial",
|
title: "Quick Dial",
|
||||||
documentUrlPatterns: [ 'moz-extension://*/dial', 'moz-extension://*/dial?*' ],
|
documentUrlPatterns: [ 'moz-extension://*/dial.html', 'moz-extension://*/dial.html?*' ],
|
||||||
contexts: ["link"]
|
contexts: ["link"]
|
||||||
});
|
});
|
||||||
browser.contextMenus.create({
|
browser.contextMenus.create({
|
||||||
@@ -886,7 +886,7 @@ app.GridNodes.capturePage = function(gridNode, callback){
|
|||||||
if(nodes){
|
if(nodes){
|
||||||
var path = '';
|
var path = '';
|
||||||
for(var i=1; i<nodes.length; i++) path = path + '/' + nodes[i].title;
|
for(var i=1; i<nodes.length; i++) path = path + '/' + nodes[i].title;
|
||||||
app.SiteInfos.fromNewTab('/dial?path=' + path, function(infos){
|
app.SiteInfos.fromNewTab('/dial.html?path=' + path, function(infos){
|
||||||
if(infos){
|
if(infos){
|
||||||
gridNode.image = infos.screenshot;
|
gridNode.image = infos.screenshot;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user