Revert "Fix bug in dark style"

This reverts commit ad8f0e70a7.
This commit is contained in:
the1812 2018-07-20 17:00:16 +08:00
parent f12ea67031
commit 316d7fe1a3
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
return (settings, resources) =>
{
$("#bilibili-new-style-dark").remove();
if (settings.useNewStyle && settings.useDarkStyle)
if (settings.useNewStyle)
{
const styles = resources.getStyle("darkStyle", "bilibili-new-style-dark");
$("body").after(styles);

View File

@ -1 +1 @@
(()=>(e,l)=>{if($("#bilibili-new-style-dark").remove(),e.useNewStyle&&e.useDarkStyle){const e=l.getStyle("darkStyle","bilibili-new-style-dark");$("body").after(e)}})();
(()=>(e,i)=>{if($("#bilibili-new-style-dark").remove(),e.useNewStyle){const e=i.getStyle("darkStyle","bilibili-new-style-dark");$("body").after(e)}})();