Update debug attribute (now with vanilla)
This commit is contained in:
@@ -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.data('debug');
|
const isDebug = !!html.getAttribute('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