Browse Source

use cheaper toString method

Falko Schindler 1 năm trước cách đây
mục cha
commit
f6673a3237
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;
                 }