removed useless and debug stuff
This commit is contained in:
parent
f88f84bc57
commit
950966abe3
8
init.js
8
init.js
@ -10,7 +10,6 @@ require(['dojo/_base/kernel', 'dojo/ready'], function (dojo, ready) {
|
||||
const view_mode = dijit.getEnclosingWidget(toolbar.view_mode);
|
||||
|
||||
prev_prefs = {
|
||||
id:this.prev_feed,
|
||||
order_by: order_by.attr("value"),
|
||||
view_mode: view_mode.attr("value"),
|
||||
};
|
||||
@ -24,12 +23,7 @@ require(['dojo/_base/kernel', 'dojo/ready'], function (dojo, ready) {
|
||||
console.log
|
||||
if (data) {
|
||||
prefs = JSON.parse(data);
|
||||
console.log("plugin:feedprefs: "+key+" => "+data);
|
||||
if (prefs.id != feed[0]) {
|
||||
console.log("plugin:feedprefs: bad data - discard entry");
|
||||
localStorage.removeItem(key);
|
||||
return;
|
||||
}
|
||||
//console.log("plugin:feedprefs: "+key+" => "+data);
|
||||
if (prefs.order_by)
|
||||
order_by.attr("value", prefs.order_by);
|
||||
if (prefs.view_mode)
|
||||
|
Loading…
Reference in New Issue
Block a user