-
Robert Knight authored
Links to source document URIs were broken under Safari <= 8 and other browsers as well due to reliance on the String.prototype.startsWith() API This issue went unnoticed in Karma/PhantomJS tests because Karma was primed with the complete set of polyfills from the js-polyfills library, including many (all?) ES6 polyfills. This same set of polyfills was_not_ used in the browser build however. This commit fixes the original issue by using 'indexOf()' instead of 'startsWith()' and reduces the likelihood of such problems going unnoticed during testing by using a much more minimal set of polyfills under PhantomJS. The alternative approach would be to go in the opposite direction and polyfill any ES6 APIs in the browser. However, we need to be careful about code bloat, so the approach taken here is the more conservative option. Fixes #2568
2ec367eb
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
browser/firefox | ||
static | ||
templates/client |