Skip to content

Commit

Permalink
Change error message bubbles to red
Browse files Browse the repository at this point in the history
  • Loading branch information
Bergbok committed Mar 16, 2024
1 parent 35c6f5e commit 467fc9e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CustomApps/playlist-tags/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "playlist-tags",
"version": "1.4.2",
"version": "1.4.3",
"private": true,
"scripts": {
"build": "spicetify-creator",
Expand Down
16 changes: 8 additions & 8 deletions CustomApps/playlist-tags/src/funcs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export function removeTagFromAllPlaylists(tag_to_remove: string): void {
try {
Spicetify.LocalStorage.set(key, JSON.stringify(tags));
} catch (DOMExcpection) {
Spicetify.showNotification('Maximum local storage qouta reached! Clear your cache in settings.');
Spicetify.showNotification('Maximum local storage qouta reached! Clear your cache in settings.', true);
}

// Break the loop as the tag has been found and removed
Expand Down Expand Up @@ -156,7 +156,7 @@ function appendTag(playlist_uris: string[], tag?: string): void {
try {
Spicetify.LocalStorage.set('tags:' + playlist_uri, JSON.stringify(new_tags));
} catch (DOMExcpection) {
Spicetify.showNotification('Maximum local storage qouta reached! Clear your cache in settings.');
Spicetify.showNotification('Maximum local storage qouta reached! Clear your cache in settings.', true);
}

if (current_value === null) {
Expand Down Expand Up @@ -198,7 +198,7 @@ function removeTag(playlist_uri: string, tag: string): void {
try {
Spicetify.LocalStorage.set('tags:' + playlist_uri, JSON.stringify(new_tags));
} catch (DOMExcpection) {
Spicetify.showNotification('Maximum local storage qouta reached! Clear your cache in settings.');
Spicetify.showNotification('Maximum local storage qouta reached! Clear your cache in settings.', true);
}

if (new_tags.length === 0) {
Expand All @@ -222,7 +222,7 @@ function registerPlaylistAsTagged(playlist_uri: string): void {
try {
Spicetify.LocalStorage.set('tags:taggedPlaylistURIs', JSON.stringify(tagged_playlists));
} catch (DOMExcpection) {
Spicetify.showNotification('Maximum local storage qouta reached! Clear your cache in settings.');
Spicetify.showNotification('Maximum local storage qouta reached! Clear your cache in settings.', true);
}
};

Expand All @@ -240,7 +240,7 @@ function deregisterPlaylistAsTagged(playlist_uri: string): void {
try {
Spicetify.LocalStorage.set('tags:taggedPlaylistURIs', JSON.stringify(filtered_playlists));
} catch (DOMExcpection) {
Spicetify.showNotification('Maximum local storage qouta reached! Clear your cache in settings.');
Spicetify.showNotification('Maximum local storage qouta reached! Clear your cache in settings.', true);
}
};

Expand Down Expand Up @@ -405,7 +405,7 @@ export async function getPlaylistMetadata(playlist_uris: string[]): Promise<Play
try {
Spicetify.LocalStorage.set('tags:cache:metadata:' + uri, JSON.stringify(trimMetadata(playlist_metadata)));
} catch (DOMExcpection) {
Spicetify.showNotification('Maximum local storage qouta reached! Clear your cache in settings.');
Spicetify.showNotification('Maximum local storage qouta reached! Clear your cache in settings.', true);
}
}
return playlist_metadata;
Expand Down Expand Up @@ -585,7 +585,7 @@ export function importTags(tags: string): number {
try {
Spicetify.LocalStorage.set(split[0], split[1]);
} catch (DOMExcpection) {
Spicetify.showNotification('Maximum local storage qouta reached! Clear your cache in settings.');
Spicetify.showNotification('Maximum local storage qouta reached! Clear your cache in settings.', true);
error_encountered = true;
}
}
Expand Down Expand Up @@ -650,7 +650,7 @@ export async function addPlaylistsToQueue(playlist_data: PlaylistMetadata[], shu
try {
Spicetify.LocalStorage.set('tags:cache:contents:' + playlist.uri.replace('spotify:playlist:', ''), JSON.stringify(trimContents(playlist_contents)));
} catch (DOMExcpection) {
Spicetify.showNotification('Maximum local storage qouta reached! Clear your cache in settings.');
Spicetify.showNotification('Maximum local storage qouta reached! Clear your cache in settings.', true);
}
}
} else {
Expand Down

0 comments on commit 467fc9e

Please sign in to comment.