Disabled JS login hook for iPhone Safari
authorDan
Wed, 29 Jul 2009 12:09:35 -0400
changeset 24 ba1a31f16afe
parent 23 4b868c7c241e
child 28 b9a3da602841
Disabled JS login hook for iPhone Safari
plugins/yubikey/yubikey.js
--- a/plugins/yubikey/yubikey.js	Fri Jul 17 14:05:50 2009 -0400
+++ b/plugins/yubikey/yubikey.js	Wed Jul 29 12:09:35 2009 -0400
@@ -217,6 +217,11 @@
 
 addOnloadHook(function()
   {
+    if ( is_iPhone )
+      // kinda can't plug a yubikey into an iPhone
+      // ... yet?
+      return;
+    
     attachHook('login_build_form', 'yk_login_dlg_hook(table);');
     attachHook('login_build_userinfo', 'if ( window.yubikey_otp_current ) userinfo.yubikey_otp = window.yubikey_otp_current;');
     if ( title == namespace_list.Special + 'Preferences/Yubikey' )