Skip to content

Commit 5c37c08

Browse files
author
carbonwallet
committed
Fix when no hash url.
1 parent e6a15c6 commit 5c37c08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/carbonwallet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ $(document).ready(function() {
1111
// and therefore the URL is not sent to the server.
1212
// See http://en.wikipedia.org/wiki/Fragment_identifier
1313
var hash = $(location).attr('href').split('#')[1];
14-
if(hash != '')
14+
if(hash != '' && hash != undefined)
1515
{
1616
$('#password').val(hash.replace(/-/g, ' '));
1717
checkValidPassword();

0 commit comments

Comments
 (0)