[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linterna-magica-commit] [37] Fix crashing when no userscript with custo
From: |
Ivaylo Valkov |
Subject: |
[linterna-magica-commit] [37] Fix crashing when no userscript with custom configurations is installed. |
Date: |
Fri, 08 Apr 2011 13:20:07 +0000 |
Revision: 37
http://svn.sv.gnu.org/viewvc/?view=rev&root=linterna-magica&revision=37
Author: valkov
Date: 2011-04-08 13:20:04 +0000 (Fri, 08 Apr 2011)
Log Message:
-----------
Fix crashing when no userscript with custom configurations is installed.
Modified Paths:
--------------
trunk/src/lm_run.js
Modified: trunk/src/lm_run.js
===================================================================
--- trunk/src/lm_run.js 2011-04-06 12:40:50 UTC (rev 36)
+++ trunk/src/lm_run.js 2011-04-08 13:20:04 UTC (rev 37)
@@ -68,8 +68,10 @@
for (var o in linterna_magica_options)
{
- // Zero migth be an option
- if (data_window.linterna_magica_user_config[o] != undefined)
+ // We could be running without custom config
+ if (data_window.linterna_magica_user_config != undefined &&
+ // Zero migth be an option
+ data_window.linterna_magica_user_config[o] != undefined)
{
config[o] = data_window.linterna_magica_user_config[o];
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [linterna-magica-commit] [37] Fix crashing when no userscript with custom configurations is installed.,
Ivaylo Valkov <=