SongSpotlight Patch File
This commit is contained in:
parent
876e8b9d19
commit
9567a0af67
2 changed files with 2 additions and 20 deletions
|
|
@ -37,10 +37,9 @@ export function presentOAuth2Modal() {
|
|||
if (!access) throw "Access token is missing";
|
||||
|
||||
const refresh = res.headers.get("X-Refresh-Token");
|
||||
// STUB uncomment this once API is fully rolled out
|
||||
// if (!refresh) throw "Refresh token is missing";
|
||||
if (!refresh) throw "Refresh token is missing";
|
||||
|
||||
useAuthorizationStore.getState().setToken(access, refresh || "");
|
||||
useAuthorizationStore.getState().setToken(access, refresh);
|
||||
getData();
|
||||
|
||||
showToast("Successfully authorized!", Toasts.Type.SUCCESS);
|
||||
|
|
|
|||
|
|
@ -17,18 +17,6 @@ import type { HTMLAttributes } from "react";
|
|||
|
||||
import fullHeightStyle from "./fullHeightContext.css?managed";
|
||||
|
||||
type SettingsEntry = {
|
||||
ariaLabel?: string;
|
||||
element?: any;
|
||||
label?: string;
|
||||
newIndicator?: any;
|
||||
newIndicatorDismissibleContentTypes?: number[];
|
||||
predicate?: () => boolean;
|
||||
searchableTitles?: string[];
|
||||
section: string,
|
||||
tabPredicate?: () => boolean;
|
||||
};
|
||||
|
||||
const cl = classNameFactory("");
|
||||
const Classes = findCssClassesLazy("animating", "baseLayer", "bg", "layer", "layers");
|
||||
|
||||
|
|
@ -53,11 +41,6 @@ const settings = definePluginSettings({
|
|||
}
|
||||
});
|
||||
|
||||
interface TransformedSettingsEntry {
|
||||
section: string;
|
||||
items: SettingsEntry[];
|
||||
}
|
||||
|
||||
interface LayerProps extends HTMLAttributes<HTMLDivElement> {
|
||||
mode: "SHOWN" | "HIDDEN";
|
||||
baseLayer?: boolean;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue