From 73b81c6cd2745e3876623eb56771dca671e61ea2 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Mon, 31 Oct 2016 12:20:55 -0400 Subject: [PATCH] Munchkin may not init properly, resulting in a ref error Fixes #2043 --- templates/base.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/base.html b/templates/base.html index d5f03c88b..3dfb32198 100644 --- a/templates/base.html +++ b/templates/base.html @@ -81,6 +81,10 @@ function initMunchkin() { if(didInit === false) { didInit = true; + if (!Munchkin || !Munchkin.init) { + return; + } + Munchkin.init('{{ munchkin_key }}'); window.__quay_munchkin_queue.forEach(function(queue_item) { Munchkin.munchkinFunction.apply(Munchkin, queue_item);