Przeglądaj źródła

use cheaper toString method

Falko Schindler 1 rok temu
rodzic
commit
f6673a3237
1 zmienionych plików z 1 dodań i 1 usunięć
  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;
                 }