diff --git a/exec/load/syncdata.js b/exec/load/syncdata.js index b6350756f30fe3ae78b4cc13ac0e10a498fcd617..57bee047ed113c2876bfe4871722e68141d39235 100644 --- a/exec/load/syncdata.js +++ b/exec/load/syncdata.js @@ -1,18 +1,16 @@ -// $Id: syncdata.js,v 1.1 2018/01/17 02:45:48 rswindell Exp $ - // Find the correct/full internal code for the "syncdata" sub-board: +"use strict;" + function find(code) { if(!code) - code = "syncdata"; + code = "syncdata"; // Find the actual sub-code - var sub_code; for(var s in msg_area.sub) { - var sub = msg_area.sub[s]; - if(sub.code.substr(-code.length).toLowerCase() == code) - return sub.code; + if(s.substr(-code.length).toLowerCase() == code) + return s; } return false; } -this; \ No newline at end of file +this;