2016-09-07 19:04:33 -04:00
|
|
|
/**
|
|
|
|
* @license
|
|
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
|
|
* found in the LICENSE file at https://angular.io/license
|
|
|
|
*/
|
|
|
|
(function(global: any) {
|
|
|
|
writeScriptTag('/vendor/zone.js');
|
2017-04-27 14:44:14 -04:00
|
|
|
writeScriptTag('/vendor/task-tracking.js');
|
2016-09-07 19:04:33 -04:00
|
|
|
writeScriptTag('/vendor/system.js');
|
|
|
|
writeScriptTag('/vendor/Reflect.js');
|
|
|
|
writeScriptTag('/_common/system-config.js');
|
2016-11-07 14:51:09 -05:00
|
|
|
if (location.pathname.indexOf('/upgrade/') != -1) {
|
|
|
|
writeScriptTag('/vendor/angular.js');
|
|
|
|
}
|
2016-09-07 19:04:33 -04:00
|
|
|
|
|
|
|
function writeScriptTag(scriptUrl: string, onload: string = '') {
|
|
|
|
document.write('<script src="' + scriptUrl + '" onload="' + onload + '"></script>');
|
|
|
|
}
|
|
|
|
}(window));
|