better message

This commit is contained in:
Egor 2017-04-22 19:10:56 -07:00
parent 152f4e1b3a
commit 9aa9526861
3 changed files with 9 additions and 2 deletions

1
chrome/.gitignore vendored
View file

@ -16,3 +16,4 @@
npm-debug.log
testem.log
/.idea/
*.zip

View file

@ -138,7 +138,13 @@ export default Component.extend({
if (!currentlyListenining) {
chrome.runtime.sendMessage({ action: 'start-listening' }, (response) => {
if (response && response.error) {
this.get('notify').warning({ html: '<div class="alert alert-warning" role="alert">' + response.error + '</div>' });
let message = response.error;
if (message === 'Extension has not been invoked for the current page (see activeTab permission). Chrome pages cannot be captured.') {
message = 'Please click inside the tab you want to listen to.'
}
this.get('notify').warning({ html: '<div class="alert alert-warning" role="alert">' + message + '</div>' });
this.set('isListenining', false);
chrome.storage.local.set({ isListenining: false });

View file

@ -3,7 +3,7 @@
"name": "Huegasm for Philips Hue Lights",
"short_name": "Huegasm",
"description": "Manage and synchronize your Philips Hue lights with the beat of your music.",
"version": "1.0.6",
"version": "1.0.7",
"icons": {
"16": "16x16.png",
"48": "48x48.png",