aboutsummaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/urls.js6
-rw-r--r--src/shared/utils/keys.js3
2 files changed, 4 insertions, 5 deletions
diff --git a/src/shared/urls.js b/src/shared/urls.js
index f7e917d..94b1220 100644
--- a/src/shared/urls.js
+++ b/src/shared/urls.js
@@ -40,8 +40,4 @@ const normalizeUrl = (url) => {
return 'http://' + url;
};
-const homepageUrls = (value) => {
- return value.split('|').map(normalizeUrl);
-};
-
-export { searchUrl, normalizeUrl, homepageUrls };
+export { searchUrl, normalizeUrl };
diff --git a/src/shared/utils/keys.js b/src/shared/utils/keys.js
index 4579fde..f024069 100644
--- a/src/shared/utils/keys.js
+++ b/src/shared/utils/keys.js
@@ -1,4 +1,7 @@
const modifiedKeyName = (name) => {
+ if (name === ' ') {
+ return 'Space';
+ }
if (name.length === 1) {
return name;
} else if (name === 'Escape') {