Skip to content

Commit

Permalink
Fix customcss
Browse files Browse the repository at this point in the history
  • Loading branch information
zerebos committed Jan 24, 2022
1 parent 6f167ab commit b4b7a15
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions renderer/src/builtins/customcss.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const fs = require("fs");
const electron = require("electron");
const UserSettings = WebpackModules.getByProps("updateAccount");
const Dispatcher = WebpackModules.getByProps("dirtyDispatch");
const ActionTypes = WebpackModules.getByProps("ActionTypes").ActionTypes;
const ActionTypes = WebpackModules.getByProps("ActionTypes", "ActivityFlags").ActionTypes;

export default new class CustomCSS extends Builtin {
get name() {return "Custom CSS";}
Expand Down Expand Up @@ -52,6 +52,7 @@ export default new class CustomCSS extends Builtin {
disabled() {
Settings.removePanel(this.id);
this.unwatchContent();
this.insertCSS("");
}

watchContent() {
Expand Down Expand Up @@ -150,6 +151,6 @@ export default new class CustomCSS extends Builtin {
});
this.isDetached = true;
UserSettings.close();
Dispatcher.dirtyDispatch({type: ActionTypes.LAYER_POP});
Dispatcher.dispatch({type: ActionTypes.LAYER_POP});
}
};

0 comments on commit b4b7a15

Please sign in to comment.