Issues with hyperlinks #1590
Murraybrian
started this conversation in
Developing Quest
Replies: 1 comment 3 replies
-
Hello, Can you post your code that prints those links, or a link to the game? (Not sure what to advise you look at, but we could probably look at the code and see what's happening.) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Im working on a game, some areas have links in the description. The starting area links work until you click on a link in a different area. When I go to the HTML tools tab I see an uncaught TypeError.
playercore.js:698 Uncaught TypeError: Cannot read properties of undefined (reading 'split')
at buildMenuOptions (playercore.js:698:27)
at $.fn.jjmenu_popup (playercore.js:1941:21)
at HTMLAnchorElement. (playercore.js:101:21)
at HTMLDocument.dispatch (jquery-2.1.1.min.js:3:6404)
at r.handle (jquery-2.1.1.min.js:3:3179)
When I go to the area of concern I see:
function buildMenuOptions(verbs, text, elementId) {
var verbsList = verbs.split("/"); <-------Uncaught TypeError: Cannot read properties of undefined (reading 'split')
var options = [];
var metadata = new Object();
metadata[text] = elementId;
var metadataString = JSON.stringify(metadata);
The issue points at the var verbsList line.
I havent been able to figure out what the issue is exactly. Im not seeing anything undefined either.
Any tips on how to further debug or error handling is greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions