Explorar el Código

fix demo when json is disabled

Mike Hamburg hace 14 años
padre
commit
f922fc35bc
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      demo/example.js

+ 1 - 1
demo/example.js

@@ -80,7 +80,7 @@ function doEncrypt() {
     v.ciphertext = ct;
     v.adata = '';
   } else {
-    v.ciphertext = ct.match(/ct:"([^"]*)"/)[1]; //"
+    v.ciphertext = ct.match(/"ct":"([^"]*)"/)[1]; //"
   }
   
   v.plaintext = '';