mirror of
https://github.com/StarCitizenTools/mediawiki-extensions-TabberNeue.git
synced 2024-11-11 17:02:05 +00:00
fix: prepend tabber ID with prefix to avoid conflict with existing header
This commit is contained in:
parent
d4fd1d2f6e
commit
d150b9e3e9
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue