feat: Change title to Excalidraw after a timeout (#2656)

* feat: Change title to Excalidraw after a timeout

* clear timeout
This commit is contained in:
Lipis 2020-12-22 11:34:06 +02:00 committed by GitHub
parent b0eeb8e6e6
commit 6adb45ef5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 10 deletions

View file

@ -124,6 +124,7 @@ import {
MIME_TYPES,
TAP_TWICE_TIMEOUT,
TOUCH_CTX_MENU_TIMEOUT,
APP_NAME,
} from "../constants";
import LayerUI from "./LayerUI";
@ -502,7 +503,7 @@ class App extends React.Component<ExcalidrawProps, AppState> {
};
private importLibraryFromUrl = async (url: string) => {
window.history.replaceState({}, "Excalidraw", window.location.origin);
window.history.replaceState({}, APP_NAME, window.location.origin);
try {
const request = await fetch(url);
const blob = await request.blob();