Skip to content
This repository has been archived by the owner on May 17, 2022. It is now read-only.

Commit

Permalink
destroy timeouts every time when destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
TorstenDittmann committed May 2, 2020
1 parent fa455de commit bad08f1
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .env.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
API_ID=xxxxxxxx
API_KEY=xxxxxxx
11 changes: 11 additions & 0 deletions .now/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
> Why do I have a folder named ".now" in my project?
The ".now" folder is created when you link a directory to a ZEIT Now project.

> What does the "project.json" file contain?
The "project.json" file contains:
- The ID of the ZEIT Now project that you linked ("projectId")
- The ID of the user or team your ZEIT Now project is owned by ("orgId")

> Should I commit the ".now" folder?
No, you should not share the ".now" folder with anyone.
Upon creation, it will be automatically added to your ".gitignore" file.
1 change: 1 addition & 0 deletions .now/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"projectId":"QmfLP3fdeNsH4HnYPtXudETGiBnzRKYPn24QfWybRnwe5a","orgId":"VwHE1khqZEw3VdQNuSVEcPpV"}
2 changes: 1 addition & 1 deletion src/routes/Write.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@
});
onDestroy(() => {
clearTimeout(autosave);
document.removeEventListener("keydown", shortcutListener);
if (editorChangeHappened) {
clearTimeout(autosave);
save(lastScene);
}
if (editor && typeof editor.destroy === "function") {
Expand Down

1 comment on commit bad08f1

@vercel
Copy link

@vercel vercel bot commented on bad08f1 May 2, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.