Skip to content

Commit

Permalink
fix: prepend tabber ID with prefix to avoid conflict with existing he…
Browse files Browse the repository at this point in the history
…ader
  • Loading branch information
alistair3149 committed Jun 3, 2024
1 parent d4fd1d2 commit d150b9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/ext.tabberNeue/Hash.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit d150b9e

Please sign in to comment.