From abfeb77fa5e0d5b3a788075217aa341e7ff8ba23 Mon Sep 17 00:00:00 2001 From: blue Date: Mon, 19 Nov 2018 17:45:42 +0300 Subject: [PATCH] typo --- ui/button.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/button.js b/ui/button.js index 14add61..04298bc 100644 --- a/ui/button.js +++ b/ui/button.js @@ -1,7 +1,7 @@ class Button { constructor(image) { this.element = document.createElement("button"); - this.element.add("shadow"); + this.element.classList.add("shadow"); this.element.style.backgroundImage = "url(images/" + image + ".svg)"; this._boundClick = this._onClick.bind(this); this.element.addEventListener("click", this._boundClick, false);