loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix handling of logout event (#15323)

It appears that there is a slight bug in the handling of the data of logout event -
the javascript should be testing the data field of the data field for the logout
instruction.

Signed-off-by: Andrew Thornton <art27@cantab.net>

authored by

zeripath and committed by
GitHub
05b7e328 298d56fe

+2 -2
+1 -1
web_src/js/features/notification.js
··· 66 66 } else if (event.data.type === 'error') { 67 67 console.error(event.data); 68 68 } else if (event.data.type === 'logout') { 69 - if (event.data !== 'here') { 69 + if (event.data.data !== 'here') { 70 70 return; 71 71 } 72 72 worker.port.postMessage({
+1 -1
web_src/js/features/stopwatch.js
··· 48 48 } else if (event.data.type === 'error') { 49 49 console.error(event.data); 50 50 } else if (event.data.type === 'logout') { 51 - if (event.data !== 'here') { 51 + if (event.data.data !== 'here') { 52 52 return; 53 53 } 54 54 worker.port.postMessage({