plugins/yubikey/yubikey.js
changeset 24 ba1a31f16afe
parent 23 4b868c7c241e
child 28 b9a3da602841
equal deleted inserted replaced
23:4b868c7c241e 24:ba1a31f16afe
   215       .remove();
   215       .remove();
   216 }
   216 }
   217 
   217 
   218 addOnloadHook(function()
   218 addOnloadHook(function()
   219   {
   219   {
       
   220     if ( is_iPhone )
       
   221       // kinda can't plug a yubikey into an iPhone
       
   222       // ... yet?
       
   223       return;
       
   224     
   220     attachHook('login_build_form', 'yk_login_dlg_hook(table);');
   225     attachHook('login_build_form', 'yk_login_dlg_hook(table);');
   221     attachHook('login_build_userinfo', 'if ( window.yubikey_otp_current ) userinfo.yubikey_otp = window.yubikey_otp_current;');
   226     attachHook('login_build_userinfo', 'if ( window.yubikey_otp_current ) userinfo.yubikey_otp = window.yubikey_otp_current;');
   222     if ( title == namespace_list.Special + 'Preferences/Yubikey' )
   227     if ( title == namespace_list.Special + 'Preferences/Yubikey' )
   223     {
   228     {
   224       load_component(['jquery', 'jquery-ui', 'expander']);
   229       load_component(['jquery', 'jquery-ui', 'expander']);