1
0
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:
Chauncey McAskill
2020-11-16 10:02:28 -05:00
committed by GitHub
parent 20d08c3d4b
commit 46797cbd6d

View File

@@ -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 };