mirror of
https://github.com/danbulant/dribbblish-dynamic-theme
synced 2026-05-27 22:12:19 +00:00
rename current to CURRENT_VERSION
This commit is contained in:
parent
5d75f4d2be
commit
fdff6230a1
1 changed files with 4 additions and 4 deletions
|
|
@ -3,6 +3,8 @@ import chroma from "chroma-js";
|
||||||
|
|
||||||
import ConfigMenu from "./ConfigMenu";
|
import ConfigMenu from "./ConfigMenu";
|
||||||
|
|
||||||
|
const CURRENT_VERSION = "2.6.0";
|
||||||
|
|
||||||
class _DribbblishShared {
|
class _DribbblishShared {
|
||||||
constructor() {
|
constructor() {
|
||||||
this.config = new ConfigMenu();
|
this.config = new ConfigMenu();
|
||||||
|
|
@ -334,8 +336,6 @@ waitForElement([".Root__main-view .os-resize-observer-host"], ([resizeHost]) =>
|
||||||
).register();
|
).register();
|
||||||
})();
|
})();
|
||||||
|
|
||||||
let current = "2.6.0";
|
|
||||||
|
|
||||||
/* Config settings */
|
/* Config settings */
|
||||||
|
|
||||||
DribbblishShared.config.register({
|
DribbblishShared.config.register({
|
||||||
|
|
@ -364,7 +364,7 @@ waitForElement(["#main"], () => {
|
||||||
description: `
|
description: `
|
||||||
OS: ${capitalizeFirstLetter(Spicetify.Platform.PlatformData.os_name)} v${Spicetify.Platform.PlatformData.os_version}
|
OS: ${capitalizeFirstLetter(Spicetify.Platform.PlatformData.os_name)} v${Spicetify.Platform.PlatformData.os_version}
|
||||||
Spotify: v${Spicetify.Platform.PlatformData.event_sender_context_information?.client_version_string ?? Spicetify.Platform.PlatformData.client_version_triple}
|
Spotify: v${Spicetify.Platform.PlatformData.event_sender_context_information?.client_version_string ?? Spicetify.Platform.PlatformData.client_version_triple}
|
||||||
Dribbblish: v${current}
|
Dribbblish: v${CURRENT_VERSION}
|
||||||
`,
|
`,
|
||||||
data: "Copy",
|
data: "Copy",
|
||||||
onChange: (val) => {
|
onChange: (val) => {
|
||||||
|
|
@ -690,7 +690,7 @@ hookCoverChange(false);
|
||||||
return response.json();
|
return response.json();
|
||||||
})
|
})
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
if (data.tag_name > current) {
|
if (data.tag_name > CURRENT_VERSION) {
|
||||||
const upd = document.createElement("div");
|
const upd = document.createElement("div");
|
||||||
upd.innerText = `Theme UPD v${data.tag_name} avail.`;
|
upd.innerText = `Theme UPD v${data.tag_name} avail.`;
|
||||||
upd.classList.add("ellipsis-one-line", "main-type-finale");
|
upd.classList.add("ellipsis-one-line", "main-type-finale");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue