]> git.mxchange.org Git - friendica-addons.git/commitdiff
jappixmini: use setPersistent to avoid password query window
authorLeberwurscht <leberwurscht@hoegners.de>
Sun, 15 Apr 2012 21:19:37 +0000 (23:19 +0200)
committerLeberwurscht <leberwurscht@hoegners.de>
Sun, 15 Apr 2012 21:19:37 +0000 (23:19 +0200)
jappixmini/lib.js

index 351d03f97717a61508e6b0593fc4af79262d3617..f62e5b8fd1aeed2caf6cf9257e0f8ba175446730 100644 (file)
@@ -24,12 +24,12 @@ function jappixmini_addon_set_client_secret(password) {
        client_secret2 = str_sha1(salt2+password);
        client_secret = client_secret1 + client_secret2;
 
-       setDB('jappix-mini', 'client-secret', client_secret);
+       setPersistent('jappix-mini', 'client-secret', client_secret);
        console.log("client secret set");
 }
 
 function jappixmini_addon_get_client_secret(callback) {
-       client_secret = getDB('jappix-mini', 'client-secret');
+       client_secret = getPersistent('jappix-mini', 'client-secret');
        if (client_secret===null) {
                div = document.getElementById("#jappixmini-password-query-div");
 
@@ -50,7 +50,7 @@ function jappixmini_addon_get_client_secret(callback) {
                        jappixmini_addon_set_client_secret(password);
                        div.remove();
 
-                       client_secret = getDB('jappix-mini', 'client-secret');
+                       client_secret = getPersistent('jappix-mini', 'client-secret');
                        callback(client_secret);
                });
        }