Răsfoiți Sursa

fix demo when json is disabled

Mike Hamburg 14 ani în urmă
părinte
comite
f922fc35bc
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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 = '';