mirror of
https://github.com/jesse-r-s-hines/obsidian-open-tab-settings.git
synced 2026-07-22 05:43:41 +00:00
Fix some linting issues
This commit is contained in:
parent
9a84c98098
commit
c3cdd87e09
2 changed files with 4 additions and 4 deletions
|
|
@ -74,9 +74,9 @@ export default class OpenTabSettingsPlugin extends Plugin {
|
|||
}
|
||||
}
|
||||
|
||||
async registerMonkeyPatches() {
|
||||
registerMonkeyPatches() {
|
||||
const plugin = this;
|
||||
const oldGetUnpinnedLeaf = this.app.workspace.getUnpinnedLeaf;
|
||||
const oldGetUnpinnedLeaf = this.app.workspace.getUnpinnedLeaf; // eslint-disable-line @typescript-eslint/unbound-method
|
||||
|
||||
// Patch getLeaf to always open in new tab
|
||||
this.register(monkeyAround.around(Workspace.prototype, {
|
||||
|
|
@ -158,7 +158,7 @@ export default class OpenTabSettingsPlugin extends Plugin {
|
|||
// workaround for a bug in kanban. See
|
||||
// https://github.com/jesse-r-s-hines/obsidian-open-tab-settings/issues/25
|
||||
// https://github.com/mgmeyers/obsidian-kanban/issues/1102
|
||||
await this.app.workspace.setActiveLeaf(matches[0]);
|
||||
this.app.workspace.setActiveLeaf(matches[0]);
|
||||
result = undefined;
|
||||
} else {
|
||||
const activeLeaf = plugin.app.workspace.getActiveViewOfType(View)?.leaf;
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ describe('Misc', function() {
|
|||
const value = await browser.executeObsidian(async ({plugins}) => {
|
||||
return plugins.openTabSettings.settings.openInNewTab;
|
||||
})
|
||||
expect(value).toBe(true);
|
||||
expect(value).toEqual(true);
|
||||
});
|
||||
|
||||
it('Test mod click', async function() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue