Просмотр исходного кода

fix demo when json is disabled

Mike Hamburg 14 лет назад
Родитель
Сommit
f922fc35bc
1 измененных файлов с 1 добавлено и 1 удалено
  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 = '';