Skip to content

Commit

Permalink
fix: don't show mobile notice on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinzent03 committed Sep 6, 2022
1 parent f378551 commit c93ddfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ export default class ObsidianGit extends Plugin {

async showNotices(): Promise<void> {
const length = 10000;
if (this.manifest.id === "obsidian-git" && !this.settings.showedMobileNotice) {
if (this.manifest.id === "obsidian-git" && Platform.isDesktopApp && !this.settings.showedMobileNotice) {
new Notice("Obsidian Git is now available on mobile! Please read the plugin's README for more information.", length);
this.settings.showedMobileNotice = true;
await this.saveSettings();
Expand Down

0 comments on commit c93ddfa

Please sign in to comment.