Merge pull request #1889 from thelounge/astorije/fix-window-on-load
Display the correct window on page reload
This commit is contained in:
commit
12dd11bd10
@ -64,7 +64,8 @@ function openCorrectChannel(clientActive, serverActive) {
|
||||
|
||||
// Open window provided in location.hash
|
||||
if (target.length === 0 && window.location.hash) {
|
||||
target = $("#footer, #sidebar").find(`.chan[data-target="${escape(window.location.hash)}"]`);
|
||||
target = $("#footer, #sidebar, #help")
|
||||
.find(`[data-target="${escape(window.location.hash)}"]`);
|
||||
}
|
||||
|
||||
// Open last active channel according to the server
|
||||
|
Loading…
Reference in New Issue
Block a user