const urlParams = new URLSearchParams(window.location.search);
urlParams.forEach((value, key) => {
if(key == "commissions") {
try {
commissions = JSON.parse(value);
commissions.forEach(value => {
types.forEach(element => {
@ -39,9 +41,14 @@
update_example(value);
console.log(value.example);
});
} catch(msg) {
error = "The selected preset link failed to load. It may be from an old version of the commission picker. It has been replaced with the default preset below."