Skip to content

Commit

Permalink
fix: fix error that occurs when plugins are loaded after this one (close
Browse files Browse the repository at this point in the history
 #43, close #44)
  • Loading branch information
valentine195 committed Oct 5, 2023
1 parent f128e27 commit 2581772
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Expand Up @@ -333,7 +333,7 @@ export default class SettingsSearch extends Plugin {
around(this.app.setting, {
addSettingTab: function (next) {
return function (tab: SettingTab) {
if (tab && tab.id !== undefined && (!this.seen.includes(tab.id))) {
if (tab && tab.id !== undefined && (!self.seen.includes(tab.id))) {
self.getTabResources(tab);
}
return next.call(this, tab);
Expand Down

0 comments on commit 2581772

Please sign in to comment.