Skip to content
This repository has been archived by the owner on Aug 6, 2023. It is now read-only.

Commit

Permalink
TBUtils.tempBaseDomain
Browse files Browse the repository at this point in the history
  • Loading branch information
creesch committed Nov 13, 2017
1 parent 4c070d1 commit 0be5240
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions extension/data/tbutils.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ function initwrapper() {
// If we are on new modmail we use www.reddit.com for all other instances we use whatever is the current domain.
TBUtils.baseDomain = ((window.location.hostname === 'mod.reddit.com' || window.location.hostname === 'alpha.reddit.com') ? 'https://www.reddit.com' : `https://${window.location.hostname}`);

// As the name suggests
// TODO: Once the alpha is no longer alpha switch all instances that use.
TBUtils.tempBaseDomain = 'https://alpha.reddit.com';


const CHROME = 'chrome', FIREFOX = 'firefox', OPERA = 'opera', EDGE = 'edge', UNKOWN_BROWSER = 'unknown',
ECHO = 'echo', SHORTNAME = 'TBUtils', SETTINGS_NAME = 'Utils';

Expand Down

0 comments on commit 0be5240

Please sign in to comment.