Browse Source

fix iframe unique name with special chars

REJack 4 years ago
parent
commit
f8ce13b9fa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      build/js/IFrame.js

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