123456789101112131415 |
- // (c) 2009, Herbert Vojčík
- // Licensed by MIT license (http://www.opensource.org/licenses/mit-license.php)
- (function() {
- var _an = appjet._native;
- var tableid = _an.storage_get("obj-root", "bootTable").value;
- var appBoot = _an.storage_get(tableid, request.headers.Host).value;
- var name, queue = appjet._internal.queue = appBoot ? appBoot.split(",") : ["0", "", "lib-0"];
- appjet.appName = queue.shift();
- appjet.mainDomain = queue.shift() || _an.storage_get("obj-root", "defaultDomain").value;
- while((queue = appjet._internal.queue) && (name = queue.shift())) {
- var agent = import({}, name);
- if (typeof agent.runAgent === "function") { agent.runAgent(queue); }
- }
- })();
|