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:
parent
b006b4849e
commit
de3dc48aee
@ -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';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user