Commit c9a31927 authored by lamby's avatar lamby Committed by sajolida
Browse files

Avoid a traceback if mirror-dispatcher.js is not available.

parent 5a2f827c
......@@ -338,7 +338,8 @@ License: <TMPL_VAR LICENSE>
<script type="text/javascript">
var linkelements = document.querySelectorAll('.use-mirror-pool');
if(linkelements.length > 0) {
// Avoid a traceback if mirror-dispatcher.js is not available.
if (typeof replaceUrlPrefixWithRandomMirror !== "undefined" && linkelements.length > 0) {
replaceUrlPrefixWithRandomMirror(linkelements);
}
</script>
......
Supports Markdown
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