mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-06-23 00:44:06 +00:00
Move browser-startup module initialisation to the end of startup
This commit is contained in:
parent
7715958485
commit
62b72f6bd1
@ -53,12 +53,6 @@ exports.startup = function() {
|
|||||||
$tw.wiki.addTiddler({title: storyTitle, text: "", list: story},$tw.wiki.getModificationFields());
|
$tw.wiki.addTiddler({title: storyTitle, text: "", list: story},$tw.wiki.getModificationFields());
|
||||||
// Host-specific startup
|
// Host-specific startup
|
||||||
if($tw.browser) {
|
if($tw.browser) {
|
||||||
// Call browser startup modules
|
|
||||||
$tw.modules.forEachModuleOfType("browser-startup",function(title,module) {
|
|
||||||
if(module.startup) {
|
|
||||||
module.startup();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
// Install the popup manager
|
// Install the popup manager
|
||||||
$tw.popup = new $tw.utils.Popup({
|
$tw.popup = new $tw.utils.Popup({
|
||||||
rootElement: document.body
|
rootElement: document.body
|
||||||
@ -130,6 +124,12 @@ exports.startup = function() {
|
|||||||
param: "$:/messages/SaveInstructions"
|
param: "$:/messages/SaveInstructions"
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
// Call browser startup modules
|
||||||
|
$tw.modules.forEachModuleOfType("browser-startup",function(title,module) {
|
||||||
|
if(module.startup) {
|
||||||
|
module.startup();
|
||||||
|
}
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
// On the server, start a commander with the command line arguments
|
// On the server, start a commander with the command line arguments
|
||||||
commander = new $tw.Commander(
|
commander = new $tw.Commander(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user