1
0
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:
Jeremy Ruston 2012-11-12 22:15:22 +00:00
parent 5e25d9e9c8
commit 481b58eec9

View File

@ -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({