The error that I'm getting is not really related to the browser, I guess, but I wanted to ask anyway.

https://drive.google.com/file/d/1WwW...ew?usp=sharing

I am injecting the script using AddScriptToExecuteOnDocumentCreated.

I have successfully done this:

Public Sub ReportIncomingArguments(sDisplayname, bIncludeMedia, bDebug)
Debug.Print sDisplayname, bIncludeMedia, bDebug
End Sub

However, when I try to use my WhatsApp function, I get an error saying

VM11:2 Module Conn was not found with e=>e.Conn&&e.ConnImpl
get @ VM11:2
VM11:2 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'on')
at E.<anonymous> (<anonymous>:2:164253)
at E.emitAsync (<anonymous>:2:53133)
at <anonymous>:2:239794
at a (runtime.276e78425ec3861add7e.js:1:15161)
at Array.forEach (<anonymous>)
at runtime.276e78425ec3861add7e.js:1:15333
at runtime.276e78425ec3861add7e.js:1:15393
at runtime.276e78425ec3861add7e.js:1:15397

What could I check to find out where it goes wrong?

The JS file was done by somebody else. I don't know where the webpack code came from.
But I know that I successfully used the JS in my old browser.

If anybody can suggest what to try to pinpoint the problem, I would be glad.
Thank you!