From 0bc5a4a971126adca1787d90db36b13716638290 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Thu, 21 Jan 2021 19:57:43 -0500 Subject: [PATCH] Update data-menu-position to be space separated instead of comma separated (#1286) --- ext/bg/settings2.html | 20 ++++++++++---------- ext/bg/welcome.html | 2 +- ext/mixed/js/popup-menu.js | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/ext/bg/settings2.html b/ext/bg/settings2.html index 700d4bd5..6f2f85fd 100644 --- a/ext/bg/settings2.html +++ b/ext/bg/settings2.html @@ -1883,7 +1883,7 @@
0
-
+
@@ -2053,7 +2053,7 @@
- +
@@ -2268,7 +2268,7 @@
- +
@@ -2985,7 +2985,7 @@
- +
diff --git a/ext/bg/welcome.html b/ext/bg/welcome.html index a4a725be..cdc0c22c 100644 --- a/ext/bg/welcome.html +++ b/ext/bg/welcome.html @@ -322,7 +322,7 @@
- +
diff --git a/ext/mixed/js/popup-menu.js b/ext/mixed/js/popup-menu.js index 5ae7435c..2e3f395d 100644 --- a/ext/mixed/js/popup-menu.js +++ b/ext/mixed/js/popup-menu.js @@ -92,7 +92,7 @@ class PopupMenu extends EventDispatcher { let verticalCover = 1; const positionInfo = this._sourceElement.dataset.menuPosition; if (typeof positionInfo === 'string') { - const positionInfoSet = new Set(positionInfo.split(',')); + const positionInfoSet = new Set(positionInfo.split(' ')); if (positionInfoSet.has('left')) { horizontal = -1;