Change pages.meet.exit() to window.history.back to support browsing history

This commit is contained in:
Niko 2022-02-23 10:41:11 +01:00
parent 06008f5a8f
commit 5cff51596e
4 changed files with 3 additions and 7 deletions

View File

@ -429,7 +429,7 @@ window.onhashchange = function(e) {
if (args.length > 0 && args[0].trim() === '') if (args.length > 0 && args[0].trim() === '')
args = []; args = [];
window.lastHash = path; app.overlay.hideAll();
for (var i = 0; i < app.hashHandlers.length; i++) { for (var i = 0; i < app.hashHandlers.length; i++) {
const cfg = app.hashHandlers[i]; const cfg = app.hashHandlers[i];
if (cfg.exact !== undefined && if (cfg.exact !== undefined &&

View File

@ -203,10 +203,6 @@ app.pages.meet = {
}); });
}, },
}, },
exit: function() {
hashredir(window.prevHash);
app.overlay.hideAll();
},
carousel: { carousel: {
_current: 0, _current: 0,
_parent: function() { return document.querySelector('#page-meet #content') }, _parent: function() { return document.querySelector('#page-meet #content') },

View File

@ -2,7 +2,7 @@
<div class="flex center"> <div class="flex center">
<a class="component icon button light round" <a class="component icon button light round"
title="{s:alt.nav_close}" title="{s:alt.nav_close}"
href="javascript:app.pages.meet.exit()" href="javascript:window.history.back()"
style="position: absolute; left: 0; margin-left: .5em;"> style="position: absolute; left: 0; margin-left: .5em;">
<div class="ic-container flex"> <div class="ic-container flex">
<i class="center fa fa-close fa-fw"></i> <i class="center fa fa-close fa-fw"></i>

View File

@ -1,4 +1,4 @@
<div id="empty" onclick="app.pages.meet.exit()" <div id="empty" onclick="window.history.back()"
class="flex size-max"> class="flex size-max">
<div class="center"> <div class="center">
<i class="fa fa-times fa-fw"></i> <i class="fa fa-times fa-fw"></i>