Commit caeecfe3 authored by Michael Droettboom's avatar Michael Droettboom Committed by GitHub

Merge pull request #259 from mdboom/support-languagePluginURL

Support a baseURL passed on window.languagePluginUrl
parents f88b2598 d0fff8f8
......@@ -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