Skip to content

Commit 0dc79d2

Browse files
committed
download annotate.tv only on desktop
1 parent e764c30 commit 0dc79d2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ import {
88
TFile,
99
MarkdownPostProcessorContext,
1010
parseLinktext,
11-
Notice
11+
Notice,
12+
Platform
1213
} from 'obsidian';
1314

1415
import definePdfAnnotation from './definePdfAnnotation';
@@ -58,7 +59,7 @@ export default class AnnotatorPlugin extends Plugin implements IHasAnnotatorSett
5859

5960
async loadResources() {
6061
await loadResourcesZip(jszip.loadAsync(stringEncodedResourcesFolder));
61-
if (this.settings.annotateTvUrl) {
62+
if (this.settings.annotateTvUrl && Platform.isDesktop) {
6263
try {
6364
const response = await fetchUrl(this.settings.annotateTvUrl);
6465
if (response.ok) {

0 commit comments

Comments
 (0)