Skip to content

Commit 262083f

Browse files
authored
Merge pull request #316 from OneNoteDev/bug/article-mode-priority
Switch the order for article detection.
2 parents 2bdf9be + c47efaf commit 262083f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/scripts/clipperUI/clipper.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,10 +557,12 @@ class ClipperClass extends ComponentBase<ClipperState, {}> {
557557
}
558558

559559
if (this.state && this.state.pageInfo) {
560+
if (this.state.pageInfo.contentType === OneNoteApi.ContentType.EnhancedUrl) {
561+
return ClipMode.Pdf;
562+
}
563+
560564
if (UrlUtils.onWhitelistedDomain(this.state.pageInfo.rawUrl)) {
561565
return ClipMode.Augmentation;
562-
} else if (this.state.pageInfo.contentType === OneNoteApi.ContentType.EnhancedUrl) {
563-
return ClipMode.Pdf;
564566
}
565567
}
566568

0 commit comments

Comments
 (0)