mirror of
https://gitee.com/huanghongxun/HMCL-docs.git
synced 2026-09-15 09:31:11 +08:00
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
---
|
||||
/* @frontmatter
|
||||
layout: null
|
||||
---
|
||||
*/
|
||||
|
||||
(function () {
|
||||
const PREFIX = "HMCL_DOCS_SETTINGS_", data = {}, bus = new EventTarget(), configs = /*{%comment%}*/{}/*{%endcomment%}*/ /**{{'/'}}{{ site.data.settings | jsonify }}/**/;
|
||||
window.addEventListener("storage", ({ key, newValue }) => key !== null && key.startsWith(PREFIX) && newValue !== data[key] && bus.dispatchEvent(new CustomEvent(key, { detail: (data[key] = newValue) })));
|
||||
|
||||
Reference in New Issue
Block a user