mirror of
https://github.com/systemjs/systemjs.git
synced 2026-02-01 15:59:54 +00:00
Merge pull request #1391 from casperlamboo/feature/script-src-property
Make the location of the system.js script accessible
This commit is contained in:
commit
29f93d2c70
@ -53,6 +53,9 @@ hookConstructor(function(constructor) {
|
||||
// support map and paths
|
||||
this.map = {};
|
||||
|
||||
// make the location of the system.js script accessible
|
||||
if ($__curScript !== undefined) this.scriptSrc = $__curScript.src;
|
||||
|
||||
// global behaviour flags
|
||||
this.warnings = false;
|
||||
this.defaultJSExtensions = false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user