diff options
Diffstat (limited to 'bandwagon/content/scripts/bandwagon.js')
-rw-r--r-- | bandwagon/content/scripts/bandwagon.js | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/bandwagon/content/scripts/bandwagon.js b/bandwagon/content/scripts/bandwagon.js index 76fede1..a02ada5 100644 --- a/bandwagon/content/scripts/bandwagon.js +++ b/bandwagon/content/scripts/bandwagon.js @@ -44,26 +44,32 @@ Bandwagon.EMID = "sharing@addons.mozilla.org"; Bandwagon.SQLITE_FILENAME = "bandwagon.sqlite"; // This is the interval between checking if the collections need updating (in -// seconds) (this will always be 120 seconds in debug mode). Note, this is not +// seconds) (this will always be 30 seconds in debug mode). Note, this is not // the delay between instances of when the feeds are pulled down (this is // decided by "extensions.bandwagon.global.update.*" or per-collection // settings), but rather the minimum delay. Bandwagon.COLLECTION_UPDATE_TIMER_DELAY = 10 * 60; -// Note: %%AMO_HOST%% replacement done in bandwagonService._initAMOHost() -// XX Brian - this should really be done on the fly to avoid repitition of urls throughtout the code -// and to lessen maintenance. +// REMEMBER: when changing AMO_HOST, the service document url in +// scripts/rpc/constants.js also has to be changed. -Bandwagon.LOGINPANE_DO_NEW_ACCOUNT = "https://%%AMO_HOST%%/users/register"; -Bandwagon.COLLECTIONSPANE_DO_SUBSCRIBE_URL = "https://%%AMO_HOST%%/collections"; -Bandwagon.COLLECTIONSPANE_DO_NEW_COLLECTION_URL = "https://%%AMO_HOST%%/collections/add"; -Bandwagon.FIRSTRUN_LANDING_PAGE = "https://%%AMO_HOST%%/pages/collector_firstrun"; -Bandwagon.AMO_AUTH_COOKIE_HOST = "%%AMO_HOST%%"; +Bandwagon.AMO_HOST = "bandwagon.stage.mozilla.com"; + +Bandwagon.COLLECTIONSPANE_DO_SUBSCRIBE_URL = "https://" + Bandwagon.AMO_HOST + "/en-US/collections"; +Bandwagon.COLLECTIONSPANE_DO_LOGIN_URL = "https://" + Bandwagon.AMO_HOST + "/en-US/firefox/users/login?to=en-US%2Ffirefox%2Fcollections"; +Bandwagon.COLLECTIONSPANE_DO_LOGOUT_URL = "https://" + Bandwagon.AMO_HOST + "/en-US/firefox/users/logout"; +Bandwagon.COLLECTIONSPANE_DO_NEW_COLLECTION_URL = "https://" + Bandwagon.AMO_HOST + "/en-US/firefox/collections/add"; +Bandwagon.FIRSTRUN_LANDING_PAGE = "https://" + Bandwagon.AMO_HOST + "/en-US/collections"; // TODO +Bandwagon.AMO_AUTH_COOKIE_HOST = Bandwagon.AMO_HOST; Bandwagon.AMO_AUTH_COOKIE_NAME = "AMOv3"; -Bandwagon.PREF_AUTH_TOKEN = "authtoken"; -Bandwagon.COMMIT_NOW = 0; // 1=commit on the fly. 0=commit when browser exit. -Bandwagon.ENABLE_PAGINATION = 0; // 1=enable "add-ons per page" settings, limit number of add-ons displayed in EM. 0=disable these settings, show all add-ons in EM. +/* ** OBSOLETE +//Bandwagon.DEFAULT_COLLECTION1_URL = "https://services.addons.mozilla.org/en-US/firefox/api/1.1/list/featured/all/10/"; +//Bandwagon.DEFAULT_COLLECTION1_NAME = "Featured Add-ons"; +//Bandwagon.MAGIC_ADD_COLLECTION_COOKIE_HOST = "www.33eels.com"; +//Bandwagon.MAGIC_ADD_COLLECTION_COOKIE_NAME = "bandwagon_addcollection"; +*/ +Bandwagon.COMMIT_NOW = 0; // 1=commit on the fly. 0=commit when browser exit. |