Explorar el Código

fix iframe unique name with special chars

REJack hace 4 años
padre
commit
f8ce13b9fa
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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) {