Skip to content

Commit b4010b5

Browse files
committed
Fix mobile check
1 parent 6fe3d63 commit b4010b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { EventRef, Plugin, FileView } from "obsidian";
1+
import { EventRef, Plugin, Platform } from "obsidian";
22
import { GitHubSyncSettings, DEFAULT_SETTINGS } from "./settings/settings";
33
import GitHubSyncSettingsTab from "./settings/tab";
44
import SyncManager from "./sync-manager";
@@ -17,7 +17,7 @@ export default class GitHubSyncPlugin extends Plugin {
1717
vaultModifyListener: EventRef | null = null;
1818

1919
async onUserEnable() {
20-
if (this.app.isMobile) {
20+
if (Platform.isMobile) {
2121
// TODO: Implement onboarding for mobile
2222
return;
2323
}

0 commit comments

Comments
 (0)