Web: Fix search is not defined

This commit is contained in:
Alexey Safronov 2023-09-05 17:52:01 +04:00
parent d96e45abb7
commit 2e17d714ca

View File

@ -663,6 +663,7 @@ function Editor({
const getBackUrl = () => {
if (!fileInfo) return;
const search = window.location.search;
const shareIndex = search.indexOf("share=");
const key = search.substring(shareIndex + 6);