diff --git a/changelog.md b/changelog.md index 6e6c5b92..36018df6 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,10 @@ # UnderScript Changelog +## Version 0.50.2 (2022-03-29) +1. Fixed settings not showing sometimes +1. Fixed setting notes not showing +1. Added another alternate update link + ## Version 0.50.1 (2022-03-28) 1. Fixed boolean setting errors 1. Fixed board background setting not applying your background diff --git a/src/base/updates.js b/src/base/updates.js index beee8ed0..47f0832a 100644 --- a/src/base/updates.js +++ b/src/base/updates.js @@ -89,32 +89,26 @@ wrap(() => { latest.set(data); if (updateToast) updateToast.close('stale'); const path = `underscript@${data.version}/${data.unpkg}`; + const css = { + border: '', + height: '', + background: '', + 'font-size': '', + margin: '', + 'border-radius': '', + }; updateToast = BasicToast({ title: '[UnderScript] Update Available!', text: `Version ${data.version}.`, className: 'dismissable', buttons: [{ - text: 'Update', + text: 'Update (github)', className: 'dismiss', - css: { - border: '', - height: '', - background: '', - 'font-size': '', - margin: '', - 'border-radius': '', - }, + css, }, { text: 'Update (unpkg)', className: 'dismiss', - css: { - border: '', - height: '', - background: '', - 'font-size': '', - margin: '', - 'border-radius': '', - }, + css, onclick(e) { location.href = `${baseURL}/${path}`; this.close('update'); @@ -122,14 +116,7 @@ wrap(() => { }, { text: 'Update (jsdelivr)', className: 'dismiss', - css: { - border: '', - height: '', - background: '', - 'font-size': '', - margin: '', - 'border-radius': '', - }, + css, onclick: (e) => { location.href = `https://cdn.jsdelivr.net/npm/${path}`; this.close('update');