mirror of
https://github.com/KevinMidboe/seasoned.git
synced 2026-03-11 03:49:07 +00:00
Popup now handles person. Updated all dependencies.
This commit is contained in:
@@ -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}` : ""
|
||||
|
||||
Reference in New Issue
Block a user