1
Fork 0

Compare commits

..

2 Commits

Author SHA1 Message Date
Bauke 5d00a130c5
Version 2.2.2! 2023-07-18 18:59:42 +02:00
Bauke ebb87eea8c
If user labels or colors are already defined, use them. 2023-07-18 18:57:46 +02:00
2 changed files with 11 additions and 1 deletions

View File

@ -13,7 +13,7 @@ export function createManifest(browser: string): Manifest.WebExtensionManifest {
manifest_version: Number.NaN,
name: "Tildes ReExtended",
description: "The principal enhancement suite for Tildes.",
version: "2.2.1",
version: "2.2.2",
permissions: ["downloads", "storage", "*://tildes.net/*"],
options_ui: {
page: "options/index.html",

View File

@ -10,6 +10,16 @@ export function v112DeserializeData(data: Record<string, any>): {
usernameColors: [],
};
if (data.data?.userLabels !== undefined) {
deserialized.userLabels = data.data
.userLabels as V112Settings["data"]["userLabels"];
}
if (data.data?.usernameColors !== undefined) {
deserialized.usernameColors = data.data
.usernameColors as V112Settings["data"]["usernameColors"];
}
for (const [key, value] of Object.entries(data)) {
if (key.startsWith("userLabel")) {
deserialized.userLabels.push(