When attempting to pass over a quoted URL to background-image or cursor, I'm facing an issue where the file simply doesn't load.
I am currently working with Vue and have installed the following libraries: Vuetify, SASS, SASS-Loader, and Node-SASS.
Removing Node-SASS is not an option as my project fails to run without it.
Here are a few examples:
// This code works
#app {
cursor: url(../public/graphics/Nights_Edge.png), auto;
}
// This code does not work
#app {
cursor: url('../public/graphics/Nights_Edge.png'), auto;
}
// This code also does not work
#app {
cursor: "url(../public/graphics/Nights_Edge.png)", auto;
}
My next question is, how can I successfully pass over such a URL with Javascript if a quoted URL doesn't load?
Here's what I attempted:
document.getElementById("app").style.cursor = "url(../public/graphics/Nights_Edge.png) auto";
However, removing the quotation marks results in errors.