mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: Change title to Excalidraw after a timeout (#2656)
* feat: Change title to Excalidraw after a timeout * clear timeout
This commit is contained in:
parent
b0eeb8e6e6
commit
6adb45ef5a
4 changed files with 16 additions and 10 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue