Skip to content

Commit

Permalink
DEFAULT_CLIENT_URL was not accessible from settings.js.
Browse files Browse the repository at this point in the history
  • Loading branch information
smelamud committed Mar 26, 2020
1 parent 31b8c53 commit 9a6e54e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import ObjectPath from 'object-path';

import { broadcastMessage, getTabClientUrl } from "./tabs";
import { clearNames, getNames } from "./names";

const DEFAULT_CLIENT_URL = "https://client.moera.org/releases/latest";
import { DEFAULT_CLIENT_URL } from "./settings";

const dataLock = new AsyncLock();

Expand Down
2 changes: 2 additions & 0 deletions src/settings.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import browser from "webextension-polyfill";

export const DEFAULT_CLIENT_URL = "https://client.moera.org/releases/latest";

export async function getSettings() {
let {defaultClient, customClientUrl} = await browser.storage.local.get(["defaultClient", "customClientUrl"]);
defaultClient = defaultClient != null ? defaultClient : true;
Expand Down

0 comments on commit 9a6e54e

Please sign in to comment.