fix iframe mode with hash-links

pull/3867/head
REJack 2021-07-29 22:22:26 +02:00
parent 1098533bcd
commit 26c84e39a3
1 changed files with 1 additions and 1 deletions

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) {