1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-30 18:24:29 +01:00

prohibit script from running on ios

This commit is contained in:
RealAngeleno 2023-08-03 22:32:42 -07:00 committed by GitHub
parent bee2d07499
commit b79731c548
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,6 +8,11 @@
*/ */
function init_file_selector(max_images) { function init_file_selector(max_images) {
// Temporarily block iOS
if (/iPad|iPhone|iPod/.test(navigator.userAgent)) {
return;
}
$(document).ready(function () { $(document).ready(function () {
// add options panel item // add options panel item
if (window.Options && Options.get_tab('general')) { if (window.Options && Options.get_tab('general')) {