|
@@ -24,7 +24,15 @@
|
|
require.callback = function () {
|
|
require.callback = function () {
|
|
require(["helios/polyfills"], function () {
|
|
require(["helios/polyfills"], function () {
|
|
require(["helios/app", "amber/core/Platform-Browser"], function (amber) {
|
|
require(["helios/app", "amber/core/Platform-Browser"], function (amber) {
|
|
- amber.initialize({'transport.defaultAmdNamespace': "helios"}).then(function () {
|
|
|
|
|
|
+ var options;
|
|
|
|
+ if (window.opener) {
|
|
|
|
+ // Slave: use master's settings
|
|
|
|
+ amber.globals.SmalltalkSettings = window.opener.require('amber/helpers').globals.SmalltalkSettings;
|
|
|
|
+ } else {
|
|
|
|
+ // Standalone: set default amd namespace
|
|
|
|
+ options = {'transport.defaultAmdNamespace': "helios"};
|
|
|
|
+ }
|
|
|
|
+ amber.initialize(options).then(function () {
|
|
amber.globals.HLManager._setup();
|
|
amber.globals.HLManager._setup();
|
|
});
|
|
});
|
|
});
|
|
});
|