feat: trying to add hashes to scripts
This commit is contained in:
@@ -66,7 +66,11 @@ export const createNewMovie: MenuEntry = {
|
||||
globalThis.location.href = "/movies/" + movie.name;
|
||||
} catch (e) {
|
||||
state.activeState.value = "error";
|
||||
state.loadingText.value = e.message;
|
||||
if (e instanceof Error) {
|
||||
if ("message" in e) {
|
||||
state.loadingText.value = e.message;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
@@ -75,7 +79,11 @@ export const createNewMovie: MenuEntry = {
|
||||
state.activeMenu.value = "input_link";
|
||||
} catch (e) {
|
||||
state.activeState.value = "error";
|
||||
state.loadingText.value = e.message;
|
||||
if (e instanceof Error) {
|
||||
if ("message" in e) {
|
||||
state.loadingText.value = e.message;
|
||||
}
|
||||
}
|
||||
}
|
||||
}, 500);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user