Explorar o código

use cheaper toString method

Falko Schindler hai 1 ano
pai
achega
f6673a3237
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      nicegui/templates/index.html

+ 1 - 1
nicegui/templates/index.html

@@ -86,7 +86,7 @@
               // ignore "Restricted" fields in Firefox (see #2469)
               if (k == 'originalTarget') {
                 try {
-                  JSON.stringify(arg[k]);
+                  arg[k].toString();
                 } catch (e) {
                   continue;
                 }