Fix mobile check

This commit is contained in:
Silvano Cerza 2025-01-22 16:26:47 +01:00
parent 6fe3d63f08
commit b4010b59e4

View file

@ -1,4 +1,4 @@
import { EventRef, Plugin, FileView } from "obsidian";
import { EventRef, Plugin, Platform } from "obsidian";
import { GitHubSyncSettings, DEFAULT_SETTINGS } from "./settings/settings";
import GitHubSyncSettingsTab from "./settings/tab";
import SyncManager from "./sync-manager";
@ -17,7 +17,7 @@ export default class GitHubSyncPlugin extends Plugin {
vaultModifyListener: EventRef | null = null;
async onUserEnable() {
if (this.app.isMobile) {
if (Platform.isMobile) {
// TODO: Implement onboarding for mobile
return;
}