From 5ffdf9988a436eb5b04056221ab0a02fedd4c507 Mon Sep 17 00:00:00 2001 From: Adhityaa Chandrasekar Date: Tue, 19 Mar 2019 01:23:37 -0400 Subject: [PATCH] commento.js: use commento namespace in wrapping --- frontend/js/commento.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/frontend/js/commento.js b/frontend/js/commento.js index 8cc1ebf..0f271b0 100644 --- a/frontend/js/commento.js +++ b/frontend/js/commento.js @@ -1,14 +1,6 @@ (function(global, document) { "use strict"; - if (global.commento === undefined) { - console.log("[commento] error: window.commento namespace not defined; maybe there's a mismatch in version between the backend and the frontend?"); - return; - } else { - global = global.commento; - } - - // Do not use other files like utils.js and http.js in the gulpfile to build // commento.js for the following reasons: // - We don't use jQuery in the actual JavaScript payload because we need @@ -1704,4 +1696,4 @@ readyLoad(); -}(window, document)); +}(window.commento, document));