mirror of
https://github.com/locomotivemtl/locomotive-boilerplate.git
synced 2026-01-15 00:55:08 +08:00
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 body = document.body;
|
||||
const isDebug = !!html.getAttribute('data-debug');
|
||||
const isDebug = html.hasAttribute('data-debug');
|
||||
|
||||
export { APP_NAME, DATA_API_KEY, html, body, isDebug };
|
||||
|
||||
Reference in New Issue
Block a user