Commit d0fff8f8 authored by Michael Droettboom's avatar Michael Droettboom

Support a baseURL passed on window.languagePluginUrl

parent f88b2598
......@@ -6,7 +6,8 @@ var languagePluginLoader = new Promise((resolve, reject) => {
// This is filled in by the Makefile to be either a local file or the
// deployed location. TODO: This should be done in a less hacky
// way.
const baseURL = '{{DEPLOY}}';
var baseURL = window.languagePluginUrl || '{{DEPLOY}}';
baseURL = baseURL.substr(0, baseURL.lastIndexOf('/')) + '/';
////////////////////////////////////////////////////////////
// Package loading
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment