1
0
mirror of https://github.com/beestat/app.git synced 2025-07-09 03:04:07 -04:00

Added link to open the ecobee app

This commit is contained in:
Jon Ziebell 2023-10-16 18:22:30 -04:00
parent d240183635
commit 99515022ce
2 changed files with 12 additions and 0 deletions

View File

@ -522,6 +522,7 @@ input[type=range]::-moz-range-thumb {
.icon.numeric_9_box:before { content: "\F03BC"; }
.icon.octagram:before { content: "\F06F9"; }
.icon.open_in_new:before { content: "\F03CC"; }
.icon.open_in_app:before { content: "\F03CB"; }
.icon.patreon:before { content: "\F0882"; }
.icon.pause:before { content: "\F03E4"; }
.icon.pencil:before { content: "\F03EB"; }

View File

@ -192,6 +192,17 @@ beestat.component.header.prototype.decorate_ = function(parent) {
(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()
.set_text('Log Out')
.set_icon('exit_to_app')