1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-29 09:44:28 +01:00

smartphone-spoiler.js: Blackberry support

This commit is contained in:
Michael Save 2012-04-03 00:04:45 +10:00
parent 99f02e709b
commit 804145bde7

View File

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