diff options
-rw-r--r-- | html/display_panel/content/display-panel.html | 1 | ||||
-rw-r--r-- | html/mobile.js | 1 | ||||
-rw-r--r-- | html/preferences_panel/preferences_panel.html | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/html/display_panel/content/display-panel.html b/html/display_panel/content/display-panel.html index 80f4cb9..0e4df97 100644 --- a/html/display_panel/content/display-panel.html +++ b/html/display_panel/content/display-panel.html @@ -28,6 +28,7 @@ * */ --> +<script src="/html/mobile.js"></script> </head> <body> diff --git a/html/mobile.js b/html/mobile.js new file mode 100644 index 0000000..67930ae --- /dev/null +++ b/html/mobile.js @@ -0,0 +1 @@ +window.isMobile = !("windows" in browser); diff --git a/html/preferences_panel/preferences_panel.html b/html/preferences_panel/preferences_panel.html index 70d3b86..3a0ad7a 100644 --- a/html/preferences_panel/preferences_panel.html +++ b/html/preferences_panel/preferences_panel.html @@ -29,6 +29,7 @@ LibreJS preferences </title> <link rel="stylesheet" type="text/css" href="./prefs.css"/> + <script src="/html/mobile.js"></script> <script type="text/javascript" src="/common/Storage.js"></script> <script type="text/javascript" src="pref.js"></script> </head> |