fix iframe mode with hash-links

This commit is contained in:
REJack 2021-07-29 22:22:26 +02:00
parent 1098533bcd
commit 26c84e39a3

View file

@ -142,7 +142,7 @@ class IFrame {
return
}
const uniqueName = link.replace('./', '').replace(/["&'./:=?[\]]/gi, '-').replace(/(--)/gi, '')
const uniqueName = link.replace('./', '').replace(/["#&'./:=?[\]]/gi, '-').replace(/(--)/gi, '')
const navId = `tab-${uniqueName}`
if (!this._config.allowDuplicates && $(`#${navId}`).length > 0) {