From f8ce13b9fa0196973ec7aa20cebd868bafdf1ee6 Mon Sep 17 00:00:00 2001 From: REJack Date: Wed, 23 Dec 2020 08:13:02 +0100 Subject: [PATCH] fix iframe unique name with special chars --- build/js/IFrame.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/js/IFrame.js b/build/js/IFrame.js index ea54f65e1..7be90df8a 100644 --- a/build/js/IFrame.js +++ b/build/js/IFrame.js @@ -133,7 +133,7 @@ class IFrame { return } - this.createTab(title, link, link.replace('.html', '').replace('./', '').replaceAll('/', '-'), autoOpen) + this.createTab(title, link, link.replace('.html', '').replace('./', '').replace(/["&'./=?[\]]/gi, '-').replaceAll('--', ''), autoOpen) } switchTab(item) {