mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-24 19:32:07 +00:00
Fix #1023: close sidebar after clicking a link on mobile
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
module.exports = {
|
||||
isMobile: /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)
|
||||
isMobile: function() {
|
||||
return (document.width <= 600);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user