1
0
mirror of https://github.com/locomotivemtl/locomotive-boilerplate.git synced 2026-01-15 00:55:08 +08:00

Update debug attribute (now with vanilla)

This commit is contained in:
Quentin Hocdé
2019-07-18 11:23:06 -04:00
parent 883e4d202e
commit 6324f7ee82

View File

@@ -3,6 +3,6 @@ const DATA_API_KEY = '.data-api';
const html = document.documentElement;
const body = document.body;
const isDebug = !!$html.data('debug');
const isDebug = !!html.getAttribute('data-debug');
export { APP_NAME, DATA_API_KEY, html, body, isDebug };