mirror of
https://github.com/streamwall/streamwall.git
synced 2026-04-03 20:32:08 -04:00
Allow pages to reload themselves
This might help with TikTok's WAF interstitials
This commit is contained in:
@@ -162,6 +162,10 @@ export default class StreamWindow extends EventEmitter<StreamWindowEventMap> {
|
||||
|
||||
// Prevent view pages from navigating away from the specified URL.
|
||||
view.webContents.on('will-navigate', (ev) => {
|
||||
if (ev.url === view.webContents.getURL()) {
|
||||
console.log('Allowing page to reload:', ev.url)
|
||||
return
|
||||
}
|
||||
ev.preventDefault()
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user