diff --git a/src/adapter/common/defineIframePlayer.ts b/src/adapter/common/defineIframePlayer.ts index 25ea08d..58c7762 100644 --- a/src/adapter/common/defineIframePlayer.ts +++ b/src/adapter/common/defineIframePlayer.ts @@ -30,8 +30,9 @@ export function defineIframePlayer(config: Config) { } function setActive(url: string) { - if (window.location.href === url) return - window.history.pushState(window.history.state, '', url) + if (window.location.href !== url) { + window.history.pushState(window.history.state, '', url) + } config.setActive(url) createIframeReadyToChangeIframeSrc(url) }