mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 20:55:56 +00:00
restore init params from DB in offline mode
This commit is contained in:
@@ -170,6 +170,13 @@ function backend_sanity_check_callback(transport) {
|
||||
var v = param.getAttribute("value");
|
||||
debug(k + " => " + v);
|
||||
init_params[k] = v;
|
||||
|
||||
if (db) {
|
||||
db.execute("DELETE FROM init_params WHERE key = ?", [k]);
|
||||
db.execute("INSERT INTO init_params (key,value) VALUES (?, ?)",
|
||||
[k, v]);
|
||||
}
|
||||
|
||||
param = param.nextSibling;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user