1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-01-18 04:48:50 +01:00

add test for development version before setting BASE_PATH

This change should make it possible to run web-maker in dev mode with
no problems.
This commit is contained in:
Matt Price 2018-12-13 14:52:33 -05:00
parent b006b4849e
commit de3dc48aee

View File

@ -15,7 +15,12 @@ window.chrome.i18n = {
window.$all = selector => [...document.querySelectorAll(selector)];
window.IS_EXTENSION = !!window.chrome.extension;
export const BASE_PATH = window.chrome.extension || window.DEBUG ? '/' : '/app';
export const BASE_PATH =
window.chrome.extension ||
window.DEBUG ||
process.env.NODE_ENV == 'development'
? '/'
: '/app';
var alphaNum = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';