update dependencies, don't even try to hide the Chrome promo icon if the user already has the extension installed (extra permission is too scary for the extension)
This commit is contained in:
parent
264fe78846
commit
1a51f1f8a9
4 changed files with 595 additions and 535 deletions
|
|
@ -9,7 +9,6 @@ export default Component.extend({
|
|||
lightsData: null,
|
||||
|
||||
firstVisitApp: true,
|
||||
canTryChrome: true,
|
||||
activeLights: A(),
|
||||
tabList: ["Lights", "Music"],
|
||||
selectedTab: 1,
|
||||
|
|
@ -85,18 +84,6 @@ export default Component.extend({
|
|||
if (!isNone(storage.get('huegasm.selectedTab'))) {
|
||||
this.set('selectedTab', this.get('storage').get('huegasm.selectedTab'));
|
||||
}
|
||||
|
||||
if (isChrome && chrome && chrome.runtime && chrome.runtime.sendMessage) {
|
||||
chrome.runtime.sendMessage(
|
||||
'mbjanbdhcpohhfecjgbdpcfhnnbofooj',
|
||||
{},
|
||||
(response) => {
|
||||
if (response && response.installed) {
|
||||
set(this, 'canTryChrome', false);
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
},
|
||||
|
||||
updateLightData() {
|
||||
|
|
|
|||
|
|
@ -13,11 +13,9 @@
|
|||
{{/menu.trigger}}
|
||||
|
||||
{{#menu.content width=3 as |content|}}
|
||||
{{#if canTryChrome}}
|
||||
{{#content.menu-item class="hidden-xs" onClick="tryExtension"}}
|
||||
{{paper-icon "extension" class=dimmerOnClass}} Try the Chrome Extension
|
||||
{{/content.menu-item}}
|
||||
{{/if}}
|
||||
{{#content.menu-item class="hidden-xs" onClick="tryExtension"}}
|
||||
{{paper-icon "extension" class=dimmerOnClass}} Try the Chrome Extension
|
||||
{{/content.menu-item}}
|
||||
|
||||
{{#content.menu-item class="visible-xs" onClick="tryAndroid"}}
|
||||
{{paper-icon "extension" class=dimmerOnClass}} Try the Android Extension
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@
|
|||
"ember-paper": "^1.0.0-alpha.19",
|
||||
"ember-resolver": "^4.0.0",
|
||||
"ember-source": "^2.11.0",
|
||||
"ember-truth-helpers": "^1.2.0",
|
||||
"ember-truth-helpers": "^2.0.0",
|
||||
"loader.js": "^4.0.7"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
1107
web/yarn.lock
1107
web/yarn.lock
File diff suppressed because it is too large
Load diff
Reference in a new issue