Web: Fix search is not defined
This commit is contained in:
parent
d96e45abb7
commit
2e17d714ca
@ -663,6 +663,7 @@ function Editor({
|
|||||||
|
|
||||||
const getBackUrl = () => {
|
const getBackUrl = () => {
|
||||||
if (!fileInfo) return;
|
if (!fileInfo) return;
|
||||||
|
const search = window.location.search;
|
||||||
const shareIndex = search.indexOf("share=");
|
const shareIndex = search.indexOf("share=");
|
||||||
const key = search.substring(shareIndex + 6);
|
const key = search.substring(shareIndex + 6);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user