Skip to content

Commit fbda8fe

Browse files
author
vogelor
committed
Fixed a error if the user logged in with other browser than firefox
1 parent 77eeb09 commit fbda8fe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

interface/web/js/scrigo.js.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,10 @@ function setFocus() {
238238
if(flag)break;
239239
}
240240
*/
241-
document.pageForm.username.focus();
241+
try {
242+
document.pageForm.username.focus();
243+
} catch (e) {
244+
}
242245
}
243246

244247

0 commit comments

Comments
 (0)