diff --git a/index.html b/index.html index 38671ff..53d366b 100644 --- a/index.html +++ b/index.html @@ -46,7 +46,7 @@ - + @@ -84,6 +84,15 @@ Clear + + + + + + + Share + + Docs diff --git a/src/main.ts b/src/main.ts index c74db86..ed099e4 100644 --- a/src/main.ts +++ b/src/main.ts @@ -171,7 +171,7 @@ export class Editor { // Share button share_button: HTMLElement = document.getElementById( - "share_button" + "share-button" ) as HTMLElement; // Error line @@ -513,11 +513,6 @@ export class Editor { }); this.share_button.addEventListener("click", () => { - this.share_button.classList.add("animate-spin"); - setInterval( - () => this.share_button.classList.remove("animate-spin"), - 1000 - ); // trigger a manual save this.currentFile().candidate = app.view.state.doc.toString(); this.currentFile().committed = app.view.state.doc.toString();
Clear
Share
Docs