From bf88243423c83762e6167b0959c68e912c9bbda3 Mon Sep 17 00:00:00 2001 From: j Date: Thu, 26 Oct 2017 12:49:57 +0200 Subject: [PATCH] set key later --- static/js/pandora.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/js/pandora.js b/static/js/pandora.js index abcffe49c..668ec3fa8 100644 --- a/static/js/pandora.js +++ b/static/js/pandora.js @@ -251,7 +251,6 @@ appPanel }, function() { pandora.site.site.videoprefix = url; }); - Ox.Map.GoogleApiKey = pandora.site.site.googleapikey; } }); } @@ -414,6 +413,8 @@ appPanel videoFormat: Ox.getVideoFormat(pandora.site.video.formats) }); + Ox.Map.GoogleApiKey = pandora.site.site.googleapikey; + // set locale and initialize url controller // data.locale is prefered language according to http header //pandora.setLocale(pandora.user.ui.locale || data.locale, function() {