Browse Source

smartphone-spoiler.js: add windows phone/tablet user agents

pull/40/head
Marcin Łabanowski 11 years ago
committed by Michael Foster
parent
commit
2779db56cb
  1. 2
      js/smartphone-spoiler.js

2
js/smartphone-spoiler.js

@ -11,7 +11,7 @@
*/
onready(function(){
if(navigator.userAgent.match(/iPhone|iPod|iPad|Android|Opera Mini|Blackberry|PlayBook/i)) {
if(navigator.userAgent.match(/iPhone|iPod|iPad|Android|Opera Mini|Blackberry|PlayBook|Windows Phone|Tablet PC|Windows CE|IEMobile/i)) {
var spoilers = document.getElementsByClassName('spoiler');
for(var i = 0; i < spoilers.length; i++) {
spoilers[i].onmousedown = function() {

Loading…
Cancel
Save