From 00cf52ead740e1e004b99e3a271bfab5457d220b Mon Sep 17 00:00:00 2001 From: Franzz Date: Sat, 19 Oct 2019 19:42:57 +0200 Subject: [PATCH] Fix lang js function --- script/spot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/spot.js b/script/spot.js index acd2206..9830f04 100755 --- a/script/spot.js +++ b/script/spot.js @@ -96,7 +96,7 @@ function Spot(asGlobals) this.lang = function(sKey, asParams) { asParams = asParams || []; - if($.type(asParams) == 'string') asParams = [asParams]; + if($.type(asParams) != 'array') asParams = [asParams]; var sLang = ''; if(sKey in self.consts.lang) {