Hi,
When my content script is active I want the user to be aware of this by a custom cursor. I have a png in the root directory.
I’m getting the resource url like this const cursorUrl = browser.runtime.getURL("office-push-pin.png");
This returns something that looks valid to me. moz-extension://3f2cc9a9-e383-4e26-8494-d186f9315bd5/office-push-pin.png
I want the cursor to use this image.
Say for example I already have an HTMLElement
called target
. I want to do something like:
target.style.cursor = `url(${cursorUrl})`
// or something like this would be better even
document.body.cursor = ...
This is not working though. Does anyone have a good idea for this?