Skip to content
Snippets Groups Projects
Commit 1947d1b4 authored by Christopher Smith's avatar Christopher Smith
Browse files

force screen_mode to string type (IE returns a number which is always...

force screen_mode to string type (IE returns a number which is always triggering the default option in the following switch/case block
parent 344be1a1
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ var device_classes = 'desktop mobile tablet phone';
function tpl_dokuwiki_mobile(){
// the z-index in mobile.css is (mis-)used purely for detecting the screen mode here
var screen_mode = jQuery('#screen__mode').css('z-index');
var screen_mode = jQuery('#screen__mode').css('z-index') + '';
// determine our device pattern
// TODO: consider moving into dokuwiki core
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment