Munchkin may not init properly, resulting in a ref error

Fixes #2043
This commit is contained in:
Joseph Schorr 2016-10-31 12:20:55 -04:00
parent 604c67948a
commit 73b81c6cd2

View file

@ -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);