Fixed issue where user-defined css wasn't loading.

This commit is contained in:
Tamius Han 2019-07-07 21:13:28 +02:00
parent 3c3e8b409c
commit a3d01f7fb4

View File

@ -24,6 +24,17 @@ class PageInfo {
this.comms = comms;
}
// request inject css immediately
try {
const playerStyleString = this.settings.active.sites[window.location.host].css.replace('\\n', '');
this.comms.sendMessage({
cmd: 'inject-css',
cssString: playerStyleString
});
} catch (e) {
// do nothing. It's ok if there's no special settings for the player element
}
this.rescan(RescanReason.PERIODIC);
this.scheduleUrlCheck();