Skip to content

Commit 2cb272f

Browse files
authored
Merge branch 'master' into user-cleanup
2 parents 9ff1dd1 + 67edce9 commit 2cb272f

File tree

6 files changed

+4
-6
lines changed

6 files changed

+4
-6
lines changed

src/chrome/extension/scripts/context.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,4 @@ export var ui :user_interface.UserInterface =
1919

2020
export var model :ui_model.Model = ui.model;
2121

22-
ui.browser = 'chrome';
2322
console.log('Loaded dependencies for Chrome Extension.');

src/firefox/data/scripts/background.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ if (undefined === ui) {
3030
model = ui.model;
3131
}
3232

33-
ui.browser = 'firefox';
34-
3533
port.on('newlyInstalled', function() {
3634
firefoxBrowserApi.hasInstalledThenLoggedIn = false;
3735
});

src/generic_ui/polymer/settings.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@
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>

src/generic_ui/polymer/settings.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import dialogs = require('../scripts/dialogs');
1313
Polymer({
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'

src/generic_ui/polymer/state.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class Background {
7979
}
8080

8181
public updateGlobalSettings = (settings: uproxy_core_api.GlobalSettings): void => {
82-
this.connector_.sendMessage('update-global-settings', settings);
82+
this.doInBackground_('update-global-settings', settings);
8383
}
8484

8585
public restart = (): void => {

src/generic_ui/scripts/ui.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)