konami-command icon indicating copy to clipboard operation
konami-command copied to clipboard

Event.path is deprecated and will be removed. Please use Event.composedPath() instead.

Open Smeulf opened this issue 2 years ago • 6 comments

Hi,

While debuging my own usersript, I found this warning message in Chrome for Super Mind Control: Event.path is deprecated and will be removed. Please use Event.composedPath() instead.

Just wanted to let you know just in case you have something to do.

Best Regards, Smeulf.

Smeulf avatar Aug 03 '22 09:08 Smeulf

Thank you I will check that!

jesus2099 avatar Aug 03 '22 11:08 jesus2099

Erh, @Smeulf. It's strange, I'm apparently not using Event.path, I didn't find it in any script?

jesus2099 avatar Aug 03 '22 13:08 jesus2099

Well, I looked at the script again and as you can't find it.

That's... Very strange. Maybe a bug in the Chrome debug console? I can get this warning only when that specific script is activated.

Sorry about that...

Cheers. Smeulf.

Smeulf avatar Aug 03 '22 23:08 Smeulf

And the warning message (I don't see it), what script does it link to? And what line and row?

jesus2099 avatar Aug 04 '22 09:08 jesus2099

Undetermined unfortunately. The debug console is not able to point it out. I'm however certain it's related to that script or a dependency because I kept that script only before I created the issue.

When the script is disabled, the warning vanish.

I'm using Chrome+ Tampermonkey btw.

I'll have a look in the code again using Visual Studio Code that seems to highlight the deprecated code. Maybe it will help. Else then maybe it's just a false positive...

Smeulf avatar Aug 04 '22 10:08 Smeulf

Thanks for your time but if you want to stop searching, no problem. 😉👍 Tampermonkey being closed source is not helpful in this case.

jesus2099 avatar Aug 04 '22 11:08 jesus2099