Explorar o código

fix demo when json is disabled

Mike Hamburg %!s(int64=14) %!d(string=hai) anos
pai
achega
f922fc35bc
Modificáronse 1 ficheiros con 1 adicións e 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 = '';