fmt: ActionButton.js (#160)

This commit is contained in:
James Read 2023-09-24 23:57:23 +01:00 committed by GitHub
parent 822327edfc
commit 3a44a6a3b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -53,14 +53,14 @@ class ActionButton extends window.HTMLElement {
} }
} }
getUniqueId() { getUniqueId () {
if (window.isSecureContext) { if (window.isSecureContext) {
return window.crypto.randomUUID() return window.crypto.randomUUID()
} else { } else {
return Date.now() return Date.now()
} }
} }
startAction (actionArgs) { startAction (actionArgs) {
// this.btn.disabled = true // this.btn.disabled = true
// this.isWaiting = true // this.isWaiting = true