[Versioning] Add developer build detection variable

pull/36/head
Oj18 3 years ago
parent 6e79fd1e22
commit ca41ff6954

@ -104,9 +104,12 @@ const init = async function () {
this.versioning = {
version: 'v7.3.0-dev',
hash: '<hash>', // Hash of built final js file is inserted here via build script
lastUsedVersion: localStorage.getItem('goosemodLastVersion')
};
this.versioning.isDeveloperBuild = this.versioning.hash === '<hash>';
fetch(`${this.moduleStoreAPI.apiBaseURL}/injectVersion.json`).then((x) => x.json().then((latestInjectVersionInfo) => {
if (latestInjectVersionInfo.version !== this.versioning.version) {
this.showToast('Warning: Version number does not match latest public release', { timeout: 3000, type: 'danger' });

Loading…
Cancel
Save