mirror of
https://github.com/streamwall/streamwall.git
synced 2026-04-15 18:22:04 -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.
|
// Prevent view pages from navigating away from the specified URL.
|
||||||
view.webContents.on('will-navigate', (ev) => {
|
view.webContents.on('will-navigate', (ev) => {
|
||||||
|
if (ev.url === view.webContents.getURL()) {
|
||||||
|
console.log('Allowing page to reload:', ev.url)
|
||||||
|
return
|
||||||
|
}
|
||||||
ev.preventDefault()
|
ev.preventDefault()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user