mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 774426 - Get correct origin for app shortcuts. r=mfinkle
This commit is contained in:
parent
483c482c96
commit
12b445c7ed
@ -44,7 +44,7 @@ function onLoad(aEvent) {
|
||||
AppsUI.shortcut = contextmenus.add(gStrings.GetStringFromName("appsContext.shortcut"), contextmenus.SelectorContext("div[mozApp]"),
|
||||
function(aTarget) {
|
||||
let manifest = aTarget.manifest;
|
||||
let origin = Services.io.newURI(app.origin, null, null);
|
||||
let origin = Services.io.newURI(aTarget.app.origin, null, null);
|
||||
gChromeWin.WebappsUI.createShortcut(manifest.name, manifest.fullLaunchPath(), gChromeWin.WebappsUI.getBiggestIcon(manifest.icons, origin), "webapp");
|
||||
});
|
||||
AppsUI.uninstall = contextmenus.add(gStrings.GetStringFromName("appsContext.uninstall"), contextmenus.SelectorContext("div[mozApp]"),
|
||||
|
Loading…
Reference in New Issue
Block a user