mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 18:35:57 +00:00
workaround for a race condition between dojo.parse() and tt-rss loading proper day/night css on startup because of firefox async CSS loader
This commit is contained in:
22
js/prefs.js
22
js/prefs.js
@@ -63,19 +63,21 @@ require(["dojo/_base/kernel",
|
||||
try {
|
||||
const _App = declare("fox.App", AppBase, {
|
||||
constructor: function() {
|
||||
parser.parse();
|
||||
this.setupNightModeDetection(() => {
|
||||
parser.parse();
|
||||
|
||||
this.setLoadingProgress(50);
|
||||
this.setLoadingProgress(50);
|
||||
|
||||
const clientTzOffset = new Date().getTimezoneOffset() * 60;
|
||||
const params = {op: "rpc", method: "sanityCheck", clientTzOffset: clientTzOffset};
|
||||
const clientTzOffset = new Date().getTimezoneOffset() * 60;
|
||||
const params = {op: "rpc", method: "sanityCheck", clientTzOffset: clientTzOffset};
|
||||
|
||||
xhrPost("backend.php", params, (transport) => {
|
||||
try {
|
||||
this.backendSanityCallback(transport);
|
||||
} catch (e) {
|
||||
this.Error.report(e);
|
||||
}
|
||||
xhrPost("backend.php", params, (transport) => {
|
||||
try {
|
||||
this.backendSanityCallback(transport);
|
||||
} catch (e) {
|
||||
this.Error.report(e);
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
initSecondStage: function() {
|
||||
|
||||
Reference in New Issue
Block a user