Skip to content

Commit

Permalink
release 0.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
pavyarov authored and pavyarov committed Jan 9, 2020
1 parent 0616ce5 commit f08014a
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 28 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ build
localization/messages
localization/translated/en.json
.env
.DS_Store

*.iml
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@drill4j/browser-extension",
"version": "0.2.2",
"version": "0.2.3",
"scripts": {
"build": "webpack -p --env.production",
"start": "node build-utils/webserver.js",
Expand Down
14 changes: 2 additions & 12 deletions src/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,7 @@ function addDrillHeaders({ requestHeaders = [] }: WebRequest.OnBeforeSendHeaders
browser.webRequest.onBeforeSendHeaders.addListener(
addDrillHeaders,
{
urls: [
'http://localhost/*',
'http://*.epam.com/*',
'https://localhost/*',
'https://*.epam.com/*',
],
urls: ['*://*/*'],
},
['blocking', 'requestHeaders'],
);
Expand All @@ -70,12 +65,7 @@ function checkDrillAgentId({ responseHeaders = [] }: WebRequest.OnHeadersReceive
browser.webRequest.onHeadersReceived.addListener(
checkDrillAgentId,
{
urls: [
'http://localhost/*',
'http://*.epam.com/*',
'https://localhost/*',
'https://*.epam.com/*',
],
urls: ['*://*/*'],
},
['responseHeaders'],
);
2 changes: 1 addition & 1 deletion src/common/connection/configure-axios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export async function configureAxios() {
const [{ url = '' }] = await browser.tabs.query({ active: true, currentWindow: true });
const hostname = new URL(url).hostname;
const { [hostname]: { adminUrl = '' } = {} } = await browser.storage.local.get(hostname);
axios.defaults.baseURL = `https://${adminUrl}/api`;
axios.defaults.baseURL = `http://${adminUrl}/api`;

axios.interceptors.request.use(
async (config) => {
Expand Down
4 changes: 2 additions & 2 deletions src/common/connection/ws-connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ export class WsConnection {
constructor(adminUrl: string, socket: string = 'drill-admin-socket', token?: string) {
this.connection = new WebSocket(
adminUrl
? `wss://${adminUrl}/ws/${socket}?token=${token}`
: `wss://localhost:8443/ws/${socket}?token=${token}`,
? `ws://${adminUrl}/ws/${socket}?token=${token}`
: `ws://localhost:8090/ws/${socket}?token=${token}`,
);
this.onMessageListeners = {};

Expand Down
14 changes: 2 additions & 12 deletions src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
{
"name": "Drill4J Browser Extension",
"version": "0.2.2",
"version": "0.2.3",
"background": {
"page": "background.html"
},
"options_page": "options.html",
"permissions": [
"tabs",
"webRequest",
"webRequestBlocking",
"activeTab",
"storage",
"http://localhost/*",
"http://*.epam.com/*",
"https://localhost/*",
"https://*.epam.com/*"
],
"permissions": ["tabs", "webRequest", "webRequestBlocking", "activeTab", "storage", "*://*/*"],
"browser_action": {
"default_icon": {
"16": "default-logo.png",
Expand Down

0 comments on commit f08014a

Please sign in to comment.