Bug 1162735 - Re-add code that got removed accidentally to fix context menus. r=florian
authorJared Wein <jwein@mozilla.com>
Thu, 07 May 2015 17:53:46 -0400
changeset 274316 9ecd4ea4e95bb90a5b5cdc729ce6c00d6ce56bbc
parent 274315 441bcf641aa7e1796451b29fca12a704c2f9b993
child 274317 fb497081c35ff9e09bc78ef3f36b99cb1a4c3bf8
push id863
push userraliiev@mozilla.com
push dateMon, 03 Aug 2015 13:22:43 +0000
treeherdermozilla-release@f6321b14228d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersflorian
bugs1162735
milestone40.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1162735 - Re-add code that got removed accidentally to fix context menus. r=florian
browser/components/pocket/Pocket.jsm
--- a/browser/components/pocket/Pocket.jsm
+++ b/browser/components/pocket/Pocket.jsm
@@ -10,16 +10,19 @@ this.EXPORTED_SYMBOLS = ["Pocket"];
 Cu.import("resource://gre/modules/XPCOMUtils.jsm");
 
 XPCOMUtils.defineLazyModuleGetter(this, "CustomizableUI",
   "resource:///modules/CustomizableUI.jsm");
 XPCOMUtils.defineLazyModuleGetter(this, "ReaderMode",
   "resource://gre/modules/ReaderMode.jsm");
 
 let Pocket = {
+  get site() Services.prefs.getCharPref("browser.pocket.site"),
+  get listURL() { return "https://" + Pocket.site; },
+
   /**
    * Functions related to the Pocket panel UI.
    */
   onPanelViewShowing(event) {
     let window = event.target.ownerDocument.defaultView;
     window.pktUI.pocketButtonOnCommand(event);
     window.pktUI.pocketPanelDidShow(event)
   },