Skip to content

Commit

Permalink
fix(import): display correct position icon for other locale users.
Browse files Browse the repository at this point in the history
  • Loading branch information
cangzhang committed Mar 25, 2020
1 parent e18d9b0 commit 14f3407
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const createMainWindow = async () => {
webPreferences: {
nodeIntegration: true,
webSecurity: false,
zoomFactor: 1,
},
});

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "champ-r",
"version": "0.5.8-1",
"version": "0.5.9",
"license": "MIT",
"description": "Get champion items for lol, Windows only.",
"productName": "ChampR",
Expand Down
5 changes: 4 additions & 1 deletion src/service/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import cheerio from 'cheerio';

import http from './http';

const RequestLocale = `en-US`;

export const requestHtml = async url => {
try {
const rawHtml = await http.get(
Expand All @@ -12,7 +14,8 @@ export const requestHtml = async url => {
{
headers: {
'X-Requested-With': `XMLHttpRequest`,
customLocale: `en_US`,
'Content-Language': RequestLocale,
'Accept-Language': RequestLocale,
},
},
);
Expand Down

0 comments on commit 14f3407

Please sign in to comment.