Skip to content

Commit

Permalink
Clear stored settings before reparsing
Browse files Browse the repository at this point in the history
  • Loading branch information
mgmeyers committed Dec 14, 2021
1 parent 983c8ef commit e0fcd84
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "obsidian-style-settings",
"name": "Style Settings",
"version": "0.4.3",
"version": "0.4.4",
"minAppVersion": "0.11.5",
"description": "Offers controls for adjusting theme, plugin, and snippet CSS variables.",
"author": "mgmeyers",
Expand Down
3 changes: 3 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ export default class CSSSettingsPlugin extends Plugin {
parseCSS() {
clearTimeout(this.debounceTimer);

this.settingsList = [];
this.errorList = [];

this.debounceTimer = window.setTimeout(() => {
const styleSheets = document.styleSheets;

Expand Down

0 comments on commit e0fcd84

Please sign in to comment.