Ver código fonte

use cheaper toString method

Falko Schindler 1 ano atrás
pai
commit
f6673a3237
1 arquivos alterados com 1 adições e 1 exclusões
  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;
                 }