This commit is contained in:
Luxferre
2023-04-03 20:03:08 +03:00
parent 1a3e5e06dd
commit df5d21e2d4
3 changed files with 7 additions and 11 deletions
+5 -9
View File
@@ -77,7 +77,7 @@ addEventListener('DOMContentLoaded', function() {
statusBar = document.querySelector('footer div.status'),
themeKey = 'uitheme', bookmarkKey = 'bookmarks', bkNumber,
history = [], historyIndex = 0, linkIndex = 0,
verticalScrollStep = 20, horizontalScrollStep = 20,
verticalScrollStep = 40, horizontalScrollStep = 20,
buf = '', emptyBk = '["","","","","","","","","","",""]'
function getTheme() {
@@ -338,17 +338,13 @@ addEventListener('DOMContentLoaded', function() {
//setup the theme
updateTheme()
// load the homepage if present and we're not in an activity
if(!location.hash) {
var hp = getBookmark(0)
loadURL(hp || 'about:kopher')
}
// load the default homepage
var hp = getBookmark(0)
loadURL(hp || 'about:kopher')
// set external activity handling for gopher:// URLs
navigator.mozSetMessageHandler('activity', function(req) {
var act = req.source
if(act.name === 'view' && act.data.type === 'url' && act.data.url)
loadURL((''+act.data.url) || 'about:kopher')
});
})
}, false)