diff options
-rw-r--r-- | lookupDictionary.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lookupDictionary.js b/lookupDictionary.js index 20cb00d..918bd41 100644 --- a/lookupDictionary.js +++ b/lookupDictionary.js @@ -37,6 +37,17 @@ const SITE_DEFINITION = [{ dictionary: 'en-US', }]; +let (siteDef = liberator.globalVariables.lookupDictionary_site_definition) { + if (siteDef) { + if (siteDef instanceof String) + siteDef = eval(siteDef); + if (siteDef.forEach instanceof Function) + siteDef.forEach(function (obj) { SITE_DEFINITION.push(obj); }); + else + SITE_DEFINITION.push(siteDef); + } +} + // class definition function SpellChecker() { this.initialize.apply(this, arguments); |