From d150b9e3e9cfb8f395556bbea50e6cd0addb0bad Mon Sep 17 00:00:00 2001 From: alistair3149 Date: Mon, 3 Jun 2024 13:20:45 -0400 Subject: [PATCH] fix: prepend tabber ID with prefix to avoid conflict with existing header --- modules/ext.tabberNeue/Hash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ext.tabberNeue/Hash.js b/modules/ext.tabberNeue/Hash.js index d039671..3401818 100644 --- a/modules/ext.tabberNeue/Hash.js +++ b/modules/ext.tabberNeue/Hash.js @@ -52,7 +52,7 @@ class Hash { * @return {string} - A unique hash created from the title text. */ static build( titleText ) { - let hash = mw.util.escapeIdForAttribute( titleText ); + let hash = `tabber-${ mw.util.escapeIdForAttribute( titleText ) }`; if ( Hash.exists( hash ) ) { hash = Hash.makeUnique( hash );