Skip to content
This repository was archived by the owner on Jun 26, 2025. It is now read-only.

Commit e71381a

Browse files
committed
refactor: simplify MutationObserver callback in injectWhenSettingsLoaded method
1 parent d3e37da commit e71381a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default class CssSnippetStore extends Plugin {
3838
}
3939

4040
injectWhenSettingsLoaded() {
41-
this.observer = new MutationObserver((mutations) => {
41+
this.observer = new MutationObserver(() => {
4242
const settingItems = Array.from(document.querySelectorAll('.setting-item'));
4343

4444
for (const item of settingItems) {

0 commit comments

Comments
 (0)