Popup now handles person. Updated all dependencies.

This commit is contained in:
2022-01-28 20:03:02 +01:00
parent 4488e53ff2
commit 18a0acfe19
4 changed files with 19 additions and 5 deletions

View File

@@ -7,6 +7,7 @@ const updateQueryParams = (id = null, type = null) => {
let params = new URLSearchParams(window.location.search);
params = removeIncludedQueryParams(params, "movie");
params = removeIncludedQueryParams(params, "show");
params = removeIncludedQueryParams(params, "person");
if (id && type === "movie") {
params.append("movie", id);
@@ -14,6 +15,9 @@ const updateQueryParams = (id = null, type = null) => {
if (id && type === "show") {
params.append("show", id);
}
if (id && type === "person") {
params.append("person", id);
}
let url = `${window.location.protocol}//${window.location.hostname}${
window.location.port ? `:${window.location.port}` : ""