Skip to content
Snippets Groups Projects
Commit 64e2ea9a authored by rswindell's avatar rswindell
Browse files

Fix line 154: TypeError: obj is null - I think

parent a6a795fb
No related branches found
No related tags found
No related merge requests found
...@@ -151,7 +151,8 @@ function import_file(usernum, filename, offset) ...@@ -151,7 +151,8 @@ function import_file(usernum, filename, offset)
function enabled(obj) function enabled(obj)
{ {
return typeof obj == 'object' return obj
&& typeof obj == 'object'
&& typeof obj.data == 'string' && typeof obj.data == 'string'
&& obj.data.length && obj.data.length
&& !obj.disabled; && !obj.disabled;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment