Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Bug 1010771 - Check for favicon field. r=me
Browse files Browse the repository at this point in the history
  • Loading branch information
daleharvey committed May 23, 2014
1 parent 30e0a8a commit 9729730
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions apps/system/js/browser_context_menu.js
Expand Up @@ -241,15 +241,14 @@
};

BrowserContextMenu.prototype.showDefaultMenu = function() {
var config = this.app.config;
var icon = ('favicon' in config) ? config.favicon.href : null;
this.showMenu([{
label: _('add-to-home-screen'),
callback: this.bookmarkUrl.bind(this,
this.app.config.url,
this.app.title,
this.app.config.favicon.href)
callback: this.bookmarkUrl.bind(this, config.url, this.app.title, icon)
}, {
label: _('share'),
callback: this.shareUrl.bind(this, this.app.config.url)
callback: this.shareUrl.bind(this, config.url)
}]);
};

Expand Down

0 comments on commit 9729730

Please sign in to comment.