1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 18:17:20 +00:00

Minor cleanup of startup.js (#5409)

* Remove unused var declaration
* Remove trailing whitespaces
This commit is contained in:
Nicolas Petton 2021-01-15 17:55:52 +01:00 committed by GitHub
parent ffc8feea0c
commit b205da2007
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,7 +23,6 @@ var PERFORMANCE_INSTRUMENTATION_CONFIG_TITLE = "$:/config/Performance/Instrument
var widget = require("$:/core/modules/widgets/widget.js"); var widget = require("$:/core/modules/widgets/widget.js");
exports.startup = function() { exports.startup = function() {
var modules,n,m,f;
// Minimal browser detection // Minimal browser detection
if($tw.browser) { if($tw.browser) {
$tw.browser.isIE = (/msie|trident/i.test(navigator.userAgent)); $tw.browser.isIE = (/msie|trident/i.test(navigator.userAgent));
@ -66,10 +65,10 @@ exports.startup = function() {
// Execute any startup actions // Execute any startup actions
$tw.rootWidget.invokeActionsByTag("$:/tags/StartupAction"); $tw.rootWidget.invokeActionsByTag("$:/tags/StartupAction");
if($tw.browser) { if($tw.browser) {
$tw.rootWidget.invokeActionsByTag("$:/tags/StartupAction/Browser"); $tw.rootWidget.invokeActionsByTag("$:/tags/StartupAction/Browser");
} }
if($tw.node) { if($tw.node) {
$tw.rootWidget.invokeActionsByTag("$:/tags/StartupAction/Node"); $tw.rootWidget.invokeActionsByTag("$:/tags/StartupAction/Node");
} }
// Kick off the language manager and switcher // Kick off the language manager and switcher
$tw.language = new $tw.Language(); $tw.language = new $tw.Language();