Injector v4.4.1: Changelog fixes and tweaks

pull/8/head
Oj18 4 years ago
parent fc97f76ba7
commit b929e6011b

@ -1,10 +1,19 @@
# GooseMod Changelog
## v4.4.1 [2020-10-30]
- ### Tweaks
- Stop using version specific / special changelog images
- ### Fixes
- Fixed changelog sometimes being glitchy, could sometimes occur when some Discord experiments / special changelog types override the changelog
## v4.4.0 [2020-10-30]
- ### Features
- Added custom component to settings UI API
- ### Tweaks
- Reduced old logging in sidebar settings generation

6
dist/index.js vendored

File diff suppressed because one or more lines are too long

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

@ -111,7 +111,7 @@ const init = async function () {
this.disabledModules = {};
this.lastVersion = localStorage.getItem('goosemodLastVersion');
this.version = '4.4.0';
this.version = '4.4.1';
this.versionHash = '<hash>'; // Hash of built final js file is inserted here via build script
if (this.lastVersion !== this.version) {

@ -1,6 +1,6 @@
import sleep from '../util/sleep';
const image = 'https://media.discordapp.net/attachments/756146058924392542/771800749687832616/goosemod_v440_banner.jpg?width=779&height=520';
const image = 'https://media.discordapp.net/attachments/756146058924392542/771374562184658944/2018-11-14-11-36-30-1200x800.png?width=853&height=569';
const changelogURL = 'https://goosemod-api.netlify.app/latestChangelogRelease.json';
let version, generated;

@ -12,7 +12,12 @@ export const setThisScope = (scope) => {
originalChangelog = {
body: orig.body,
image: orig.image,
date: orig.date
date: orig.date,
template: orig.template,
experiment_bucket: orig.experiment_bucket,
experiment_names: orig.experiment_names
};
};
@ -31,6 +36,11 @@ export const resetChangelog = () => {
mod.changeLog.body = originalChangelog.body;
mod.changeLog.image = originalChangelog.image;
mod.changeLog.date = originalChangelog.date;
mod.changeLog.template = originalChangelog.template;
mod.experiment_bucket = originalChangelog.experiment_bucket,
mod.experiment_names = originalChangelog.experiment_names
}
export const setChangelog = ({body, image, date}) => {
@ -47,4 +57,9 @@ export const setChangelog = ({body, image, date}) => {
if (date) {
mod.changeLog.date = date;
}
mod.changeLog.template = 'standard';
delete mod.changeLog.experiment_bucket;
delete mod.changeLog.experiment_names;
};
Loading…
Cancel
Save