1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-06-27 12:05:06 +02:00

fix crash in preferences due to headlines-frame missing

This commit is contained in:
Andrew Dolgov 2021-03-10 12:25:52 +03:00
parent f58879c1dc
commit e826c9e055

View File

@ -514,7 +514,13 @@ const App = {
this.LABEL_BASE_INDEX = parseInt(params[k]); this.LABEL_BASE_INDEX = parseInt(params[k]);
break; break;
case "cdm_auto_catchup": case "cdm_auto_catchup":
App.byId("headlines-frame").setAttribute("data-auto-catchup", params[k] ? "true" : "false"); {
const headlines = App.byId("headlines-frame");
// we could be in preferences
if (headlines)
headlines.setAttribute("data-auto-catchup", params[k] ? "true" : "false");
}
break; break;
case "hotkeys": case "hotkeys":
// filter mnemonic definitions (used for help panel) from hotkeys map // filter mnemonic definitions (used for help panel) from hotkeys map