I had some problems getting remote widgets (https://documentation.vin65.com/Designer-Launch/Vin65-Remote-Widgets) working and wanted to 1. share my solutions and 2. flag this to the WineDirect team.
First, the WineDirect JS file uses a library called js-cookie (https://github.com/js-cookie/js-cookie) which must be included explicitly. So in addition to the WineDirect JS I had to include this, e.g.:
Second, an error was thrown on the following line:
var action = $(form).context.action.split('?method=');
I didn’t have time to properly debug this, but I fixed by changing it to:
var action = $(form).attr('action').split('?method=');
(And then hosted the updated version myself which I realize is probably going to break in the future.)
These are the only issues I’ve run into so far.
WineDirect team - please let me know if I’m missing anything here. These both seemed like bugs to me.