Fix whitespace
This commit is contained in:
parent
3b4d14f194
commit
5fc41687be
1 changed files with 11 additions and 10 deletions
|
@ -22,9 +22,10 @@
|
||||||
// Given a array of URIs, load them in order
|
// Given a array of URIs, load them in order
|
||||||
function loadLanguages(uris, callback) {
|
function loadLanguages(uris, callback) {
|
||||||
uris.forEach(function(uri) {
|
uris.forEach(function(uri) {
|
||||||
var sc=document.createElement('script');
|
var sc = document.createElement('script');
|
||||||
sc.src=uri; sc.async=false; // critical?
|
sc.src = uri;
|
||||||
if( uris.indexOf(uri) == uris.length-1) {
|
sc.async = false; // critical?
|
||||||
|
if (uris.indexOf(uri) == uris.length-1) {
|
||||||
sc.onload = callback;
|
sc.onload = callback;
|
||||||
}
|
}
|
||||||
document.head.appendChild(sc);
|
document.head.appendChild(sc);
|
||||||
|
|
Loading…
Add table
Reference in a new issue