Skip to content

Commit

Permalink
fix: change window openmode on mobile to true
Browse files Browse the repository at this point in the history
close #169
  • Loading branch information
Vinzent03 committed Jul 7, 2024
1 parent 944b2fa commit 204be8a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
normalizePath,
Notice,
parseFrontMatterAliases,
Platform,
Plugin,
TFile,
TFolder,
Expand Down Expand Up @@ -535,6 +536,11 @@ export default class AdvancedURI extends Plugin {
return;
}

// `window` is only supported on desktop
if (Platform.isMobileApp && openMode == "window") {
openMode = true;
}

let fileIsAlreadyOpened = false;
if (isBoolean(openMode)) {
this.app.workspace.iterateAllLeaves((leaf) => {
Expand Down

0 comments on commit 204be8a

Please sign in to comment.