Skip to content

Commit bdc4154

Browse files
committed
Added custom TOC for mobile
1 parent f2b3021 commit bdc4154

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/script_2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine
262262
isMobile = true;
263263
}
264264

265-
if (isMobile) {
265+
if (isMobile && window.screen.width < 768) {
266266
$(`code:contains(ToC)`).html(TOC_MOBILE);
267267
}
268268

0 commit comments

Comments
 (0)