Skip to content

Commit fcfa74f

Browse files
lucluevertonfraga
authored andcommitted
added @frozeman's fix (ethereum#328)
1 parent 461a4f8 commit fcfa74f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/client/lib/appStart.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ if(location.hostname !== 'localhost' && location.hostname !== '127.0.0.1')
55

66
// Make sure the example contract code is up to date
77
var shortExample = Helpers.defaultContractExample.substr(Helpers.defaultContractExample.indexOf("\n\n")+2);
8-
if (localStorage.getItem('contractSource').indexOf(shortExample) !== -1) {
8+
if (localStorage.getItem('contractSource') && localStorage.getItem('contractSource').indexOf(shortExample) !== -1) {
99
localStorage.setItem('contractSource', Helpers.defaultContractExample);
1010
}
1111

0 commit comments

Comments
 (0)