Skip to content

Commit

Permalink
fix: send browser name to client app installer
Browse files Browse the repository at this point in the history
  • Loading branch information
dessant committed Feb 8, 2020
1 parent 4e0d24f commit aab8384
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/setup/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export default {
apiUrl: apiURL.href,
session: urlParams.get('session'),
browser: '',
appDir: '',
manifestDir: '',
manifestDirEditable: false,
Expand Down Expand Up @@ -146,10 +147,7 @@ export default {
location: async function() {
const data = new FormData();
data.append('session', this.session);
data.append(
'browser',
(await browser.runtime.sendMessage({id: 'getBrowser'})).name
);
data.append('browser', this.browser);
data.append('targetEnv', targetEnv);
const rsp = await fetch(`${this.apiUrl}/setup/location`, {
Expand All @@ -174,6 +172,7 @@ export default {
data.append('session', this.session);
data.append('appDir', this.appDir);
data.append('manifestDir', this.manifestDir);
data.append('browser', this.browser);
data.append('targetEnv', targetEnv);
data.append('extension', this.getExtensionId());
Expand All @@ -196,6 +195,8 @@ export default {
},
created: async function() {
this.browser = (await browser.runtime.sendMessage({id: 'getBrowser'})).name;
await this.setLocation();
const {os} = await browser.runtime.sendMessage({id: 'getPlatform'});
Expand Down

0 comments on commit aab8384

Please sign in to comment.