Update isDebug condition in environment.js
Check if the attribute exists instead of a truthy value.
This commit is contained in:
committed by
GitHub
parent
20d08c3d4b
commit
46797cbd6d
@@ -3,6 +3,6 @@ const DATA_API_KEY = '.data-api';
|
|||||||
|
|
||||||
const html = document.documentElement;
|
const html = document.documentElement;
|
||||||
const body = document.body;
|
const body = document.body;
|
||||||
const isDebug = !!html.getAttribute('data-debug');
|
const isDebug = html.hasAttribute('data-debug');
|
||||||
|
|
||||||
export { APP_NAME, DATA_API_KEY, html, body, isDebug };
|
export { APP_NAME, DATA_API_KEY, html, body, isDebug };
|
||||||
|
|||||||
Reference in New Issue
Block a user