瀏覽代碼

fix demo when json is disabled

Mike Hamburg 14 年之前
父節點
當前提交
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 = '';