From acdc370955d1016403c9d3155f6a48ee62f48d92 Mon Sep 17 00:00:00 2001 From: Daniel Ruf Date: Mon, 19 Nov 2018 08:53:51 +0100 Subject: [PATCH] fix: properly check for "undefined" as type --- js/foundation.interchange.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/foundation.interchange.js b/js/foundation.interchange.js index 8f91b6bed..fcdd54c3f 100644 --- a/js/foundation.interchange.js +++ b/js/foundation.interchange.js @@ -92,7 +92,7 @@ class Interchange extends Plugin { */ _parseOptions() { var types = ['auto', 'src', 'background', 'html']; - if (typeof this.options.type === undefined) + if (typeof this.options.type === 'undefined') this.options.type = 'auto'; else if (types.indexOf(this.options.type) === -1) { console.log(`Warning: invalid value "${this.options.type}" for Interchange option "type"`); -- 2.47.2