Ver código fonte

Use the builtin JSON library

JC Brand 8 anos atrás
pai
commit
9a2c7257d7
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/utils.js

+ 1 - 1
src/utils.js

@@ -154,7 +154,7 @@
                 this.i18n = locales.en;
                 this.i18n = locales.en;
             }
             }
             if (typeof this.i18n === "string") {
             if (typeof this.i18n === "string") {
-                this.i18n = $.parseJSON(this.i18n);
+                this.i18n = window.JSON.parse(this.i18n);
             }
             }
             if (typeof this.jed === "undefined") {
             if (typeof this.jed === "undefined") {
                 this.jed = new Jed(this.i18n);
                 this.jed = new Jed(this.i18n);