From a2e68be440a016107a7d7ab6a38d487738166780 Mon Sep 17 00:00:00 2001 From: astefanutti Date: Tue, 30 Jun 2015 16:18:19 +0200 Subject: [PATCH] Improve impress.js version compatibility --- plugins/impress.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plugins/impress.js b/plugins/impress.js index c835775..9e5ff17 100644 --- a/plugins/impress.js +++ b/plugins/impress.js @@ -8,7 +8,13 @@ Impress.prototype = { }, isActive : function() { - return typeof impress === "function"; + if (typeof impress === "function") + return true; + + if (document.getElementById("impress")) + console.log("Impress JS plugin isn't compatible with impress.js version < 0.3.0"); + + return false; }, slideCount : function() {