mirror of
https://github.com/beestat/app.git
synced 2025-07-31 14:33:51 -04:00
Added link to open the ecobee app
This commit is contained in:
parent
d240183635
commit
99515022ce
@ -522,6 +522,7 @@ input[type=range]::-moz-range-thumb {
|
|||||||
.icon.numeric_9_box:before { content: "\F03BC"; }
|
.icon.numeric_9_box:before { content: "\F03BC"; }
|
||||||
.icon.octagram:before { content: "\F06F9"; }
|
.icon.octagram:before { content: "\F06F9"; }
|
||||||
.icon.open_in_new:before { content: "\F03CC"; }
|
.icon.open_in_new:before { content: "\F03CC"; }
|
||||||
|
.icon.open_in_app:before { content: "\F03CB"; }
|
||||||
.icon.patreon:before { content: "\F0882"; }
|
.icon.patreon:before { content: "\F0882"; }
|
||||||
.icon.pause:before { content: "\F03E4"; }
|
.icon.pause:before { content: "\F03E4"; }
|
||||||
.icon.pencil:before { content: "\F03EB"; }
|
.icon.pencil:before { content: "\F03EB"; }
|
||||||
|
@ -192,6 +192,17 @@ beestat.component.header.prototype.decorate_ = function(parent) {
|
|||||||
(new beestat.layer.settings()).render();
|
(new beestat.layer.settings()).render();
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
const url_parameters = new URLSearchParams(window.location.search);
|
||||||
|
const platform = url_parameters.get('platform');
|
||||||
|
if (platform === 'ios' || platform === 'android') {
|
||||||
|
menu.add_menu_item(new beestat.component.menu_item()
|
||||||
|
.set_text('Open Ecobee App')
|
||||||
|
.set_icon('open_in_app')
|
||||||
|
.set_callback(function() {
|
||||||
|
window.location.replace('ecobee://beestat');
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
|
||||||
menu.add_menu_item(new beestat.component.menu_item()
|
menu.add_menu_item(new beestat.component.menu_item()
|
||||||
.set_text('Log Out')
|
.set_text('Log Out')
|
||||||
.set_icon('exit_to_app')
|
.set_icon('exit_to_app')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user