1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-05-01 17:34:10 +02:00

Fix inconsistency with loadConfigurationFile's onFailure parameter

This commit is contained in:
chylex 2016-09-25 03:21:44 +02:00
parent 47935165db
commit 3e9c397494

View File

@ -15,7 +15,7 @@
try{ try{
obj = eval("("+contents+")"); obj = eval("("+contents+")");
}catch(err){ }catch(err){
if (!(onFailure && onFailure(err.message))){ if (!(onFailure && onFailure(err))){
$TD.alert("warning", "Problem loading '"+fileName+"' file for '"+identifier+"' plugin, the JavaScript syntax is invalid: "+err.message); $TD.alert("warning", "Problem loading '"+fileName+"' file for '"+identifier+"' plugin, the JavaScript syntax is invalid: "+err.message);
} }