aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-01-08 14:47:39 +0100
committerWojtek Kosior <koszko@koszko.org>2022-01-08 14:48:12 +0100
commit448820a11634de6ec356c77b8c7c0cf4937b344c (patch)
tree06147c3d40475ba863ccea9904ba4cdfe1d66db0 /common
parent372d24ea3a52e376f953deeffeb7847d008b81c9 (diff)
downloadbrowser-extension-448820a11634de6ec356c77b8c7c0cf4937b344c.tar.gz
browser-extension-448820a11634de6ec356c77b8c7c0cf4937b344c.zip
work on UI components
This commit introduces some HTML and javascript (and tests for it) to use in constructing the new UI. This is partial work that is not yet finished.
Diffstat (limited to 'common')
-rw-r--r--common/lock.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/lock.js b/common/lock.js
index 5a2d7c8..8dd2f5b 100644
--- a/common/lock.js
+++ b/common/lock.js
@@ -70,7 +70,7 @@ function _lock(lock, cb) {
function unlock(lock) {
if (lock.free)
- throw new Exception("Attempting to release a free lock");
+ throw new Error("Attempting to release a free lock");
if (lock.queue.length === 0) {
lock.free = true;