Widget talk:Account build summary

From Guild Wars 2 Wiki
Jump to navigationJump to search

API key not retained on refresh[edit]

There is no call to setCookie in the widget, so API key has to be entered on page refresh. --BryghtShadow (talk) 21:13, 13 August 2019 (UTC)

Error when item not found in API[edit]

Missing precondition item_id in builddata.items in the code added in https://wiki.guildwars2.com/index.php?title=Widget:Account_build_summary&diff=1934485&oldid=1926524. Cheers --BryghtShadow (talk) 11:47, 16 September 2019 (UTC)

Uncaught TypeError: Cannot use 'in' operator to search for 'details' in undefined[edit]

Uncaught TypeError: Cannot use 'in' operator to search for 'details' in undefined
   at Template:Account_build_summary_widget:220
// Find prefix id - if selectable, it'll be under equipment_details.stats.id. If not, it'll be hiding in builddata
var prefixid;
if ('stats' in equipment_details){
    prefixid = equipment_details.stats.id;
} else if ('details' in builddata.items[item_id] && 'infix_upgrade' in builddata.items[item_id].details) {
    prefixid = builddata.items[item_id].details.infix_upgrade.id;
} else {
    prefixid = -1;
}

--BryghtShadow (talk) 05:46, 17 November 2019 (UTC)

Bug with equipment in tabs[edit]

Apparently there's a bug where armor (only?) gets ommited from the display despite it being in the API (e.g. for my necro which has two tabs both with armor, only tab 2 with exotic bounty hunter (#84890) loads whereas wvw svaard's gear (#71968) does not). To investigate later. -Chieftain AlexUser Chieftain Alex sig.png 19:50, 18 April 2020 (UTC)