Brion VIBBER has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/100823


Change subject: Blacklist Google Glass web browser from JS
......................................................................

Blacklist Google Glass web browser from JS

This will prevent things like collapsing sections on the Google Glass
web browser, and other interactive extras that really don't work well
on the limited UI (although the browser supports JS the interaction
model doesn't let you do much usefully, so a static page is better).

bug: 56008
Change-Id: I406d8131d4a8b3b98328e6c624433b67a18db645
---
M resources/startup.js
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/23/100823/1

diff --git a/resources/startup.js b/resources/startup.js
index 6aba2f9..f139570 100644
--- a/resources/startup.js
+++ b/resources/startup.js
@@ -41,7 +41,9 @@
                // Opera Mini, all versions
                ua.match( /Opera Mini/ ) ||
                // Nokia's Ovi Browser
-               ua.match( /S40OviBrowser/ )
+               ua.match( /S40OviBrowser/ ) ||
+               // Google Glass browser groks JS but UI is too limited
+               ( ua.match( /Glass/ ) && ua.match( /Android/ ) )
        );
 }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/100823
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I406d8131d4a8b3b98328e6c624433b67a18db645
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Brion VIBBER <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to