aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/console/components/console.js1
-rw-r--r--src/content/components/common/index.js2
-rw-r--r--src/shared/messages.js4
3 files changed, 4 insertions, 3 deletions
diff --git a/src/console/components/console.js b/src/console/components/console.js
index 93802f8..82ec467 100644
--- a/src/console/components/console.js
+++ b/src/console/components/console.js
@@ -107,6 +107,7 @@ export default class ConsoleComponent {
command.style.display = 'block';
input.value = text;
input.focus();
+ this.prevValue = '';
}
hideCommand() {
diff --git a/src/content/components/common/index.js b/src/content/components/common/index.js
index a05febd..5e977ae 100644
--- a/src/content/components/common/index.js
+++ b/src/content/components/common/index.js
@@ -28,7 +28,7 @@ export default class Common {
}
onMessage(message, sender) {
- switch (message) {
+ switch (message.type) {
case messages.SETTINGS_CHANGED:
this.reloadSettings();
}
diff --git a/src/shared/messages.js b/src/shared/messages.js
index 581e167..134d71c 100644
--- a/src/shared/messages.js
+++ b/src/shared/messages.js
@@ -1,6 +1,4 @@
export default {
- SETTINGS_QUERY: 'settings.query',
-
BACKGROUND_OPERATION: 'background.operation',
CONSOLE_BLURRED: 'console.blured',
@@ -23,4 +21,6 @@ export default {
OPEN_URL: 'open.url',
SETTINGS_RELOAD: 'settings.reload',
+ SETTINGS_CHANGED: 'settings.changed',
+ SETTINGS_QUERY: 'settings.query',
};