Skip to content

Commit

Permalink
fix: not run on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
linonetwo committed Mar 7, 2024
1 parent 2411fe6 commit d783732
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tw-mobile-sync/server/browser-background-sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ class BackgroundSyncManager {
}

async start() {
const isInTidGiMobile = $tw.wiki.getTiddlerText('$:/info/tidgi-mobile') === 'yes';
if (isInTidGiMobile) return;
if (this.loop !== undefined) {
clearInterval(this.loop);
this.lock = false;
Expand Down

0 comments on commit d783732

Please sign in to comment.