File tree Expand file tree Collapse file tree 5 files changed +3
-5
lines changed
Expand file tree Collapse file tree 5 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -19,5 +19,4 @@ export var ui :user_interface.UserInterface =
1919
2020export var model :ui_model . Model = ui . model ;
2121
22- ui . browser = 'chrome' ;
2322console . log ( 'Loaded dependencies for Chrome Extension.' ) ;
Original file line number Diff line number Diff line change @@ -30,8 +30,6 @@ if (undefined === ui) {
3030 model = ui . model ;
3131}
3232
33- ui . browser = 'firefox' ;
34-
3533port . on ( 'newlyInstalled' , function ( ) {
3634 firefoxBrowserApi . hasInstalledThenLoggedIn = false ;
3735} ) ;
Original file line number Diff line number Diff line change 198198
199199 < hr >
200200
201- < uproxy-link on-tap ='{{ restart }} ' hidden? ='{{ ui.browser !== "chrome" }} ' role ='button '>
201+ < uproxy-link on-tap ='{{ restart }} ' hidden? ='{{ !showRestartButton }} ' role ='button '>
202202 < core-icon icon ='refresh '> </ core-icon >
203203 < span class ='label '> {{ "RESTART" | $$ }}</ span >
204204 </ uproxy-link >
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import dialogs = require('../scripts/dialogs');
1313Polymer ( {
1414 accountChooserOpen : false ,
1515 connectedNetworks : '' ,
16+ showRestartButton : false ,
1617 logOut : function ( ) {
1718 // logout all networks asynchronously
1819
@@ -68,6 +69,7 @@ Polymer({
6869 ready : function ( ) {
6970 this . ui = ui ;
7071 this . model = ui_context . model ;
72+ this . showRestartButton = ( typeof window . chrome ) !== 'undefined' ;
7173 } ,
7274 observe : {
7375 'model.onlineNetworks' : 'networksChanged'
Original file line number Diff line number Diff line change @@ -121,7 +121,6 @@ export class UserInterface implements ui_constants.UiApi {
121121
122122 /* About this uProxy installation */
123123 public portControlSupport = uproxy_core_api . PortControlSupport . PENDING ;
124- public browser :string = '' ;
125124 public availableVersion :string = null ;
126125
127126 public toastMessage :string = null ;
You can’t perform that action at this time.
0 commit comments