[Main] Made warning toasts for mismatching hash + version show as actual "danger" types rather than normal

pull/36/head
Oj18 3 years ago
parent c065ed8727
commit 41ca08806d

@ -14,6 +14,9 @@
- Fixed Patcher Base not overriding toString properly
- Fixed Patcher Context Menu sub menus causing errors
- ### Tweaks
- Made warning toasts for mismatching hash + version show as actual "danger" types rather than normal
## v7.1.0 [2021-02-28]

@ -107,11 +107,11 @@ const init = async function () {
fetch(`${this.moduleStoreAPI.apiBaseURL}/injectVersion.json`).then((x) => x.json().then((latestInjectVersionInfo) => {
if (latestInjectVersionInfo.version !== this.version) {
this.showToast('Warning: Version number does not match latest public release', {timeout: 3000});
this.showToast('Warning: Version number does not match latest public release', { timeout: 3000, type: 'danger' });
}
if (latestInjectVersionInfo.hash !== this.versionHash) {
this.showToast('Warning: Version hash does not match latest public release', {timeout: 3000});
this.showToast('Warning: Version hash does not match latest public release', { timeout: 3000, type: 'danger' });
}
}));

Loading…
Cancel
Save