mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 10:07:19 +00:00
Fixed crash when no browser-startup modules
This commit is contained in:
parent
5e25d9e9c8
commit
481b58eec9
@ -43,8 +43,10 @@ exports.startup = function() {
|
||||
if($tw.browser) {
|
||||
// Call browser startup modules
|
||||
modules = $tw.modules.types["browser-startup"];
|
||||
for(m=0; m<modules.length; m++) {
|
||||
modules[m].startup();
|
||||
if(modules) {
|
||||
for(m=0; m<modules.length; m++) {
|
||||
modules[m].startup();
|
||||
}
|
||||
}
|
||||
// Install the popup manager
|
||||
$tw.popup = new $tw.utils.Popup({
|
||||
|
Loading…
Reference in New Issue
Block a user