Skip to content
This repository was archived by the owner on Feb 26, 2020. It is now read-only.

Commit d2a16d1

Browse files
amaury1093jacogr
authored andcommitted
Remove console errors due to service worker (#55)
* Remove all messages from service worker * Update plugin signer account
1 parent 2470a7c commit d2a16d1

File tree

4 files changed

+118
-3
lines changed

4 files changed

+118
-3
lines changed

package-lock.json

Lines changed: 92 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,14 @@
124124
"postcss-nested": "2.1.0",
125125
"postcss-simple-vars": "4.0.0",
126126
"progress": "1.1.8",
127+
"promise-worker": "1.1.1",
127128
"raw-loader": "0.5.1",
128129
"react-addons-perf": "15.4.2",
129130
"react-addons-test-utils": "15.6.2",
130131
"react-hot-loader": "3.1.3",
131132
"react-intl-aggregate-webpack-plugin": "0.0.1",
132133
"rimraf": "2.6.2",
134+
"serviceworker-webpack-plugin": "0.2.3",
133135
"sinon": "1.17.7",
134136
"sinon-as-promised": "4.0.2",
135137
"sinon-chai": "2.8.0",
@@ -146,12 +148,13 @@
146148
"webpack-error-notification": "0.1.6",
147149
"webpack-hot-middleware": "2.17.1",
148150
"websocket": "1.0.24",
151+
"worker-loader": "1.1.1",
149152
"yargs": "6.6.0"
150153
},
151154
"dependencies": {
152155
"@parity/api": "2.1.20",
153156
"@parity/mobx": "1.1.2",
154-
"@parity/plugin-signer-account": "github:parity-js/plugin-signer-account#3acd84ba1965f9ee419edd04d84e13e097e6d661",
157+
"@parity/plugin-signer-account": "github:parity-js/plugin-signer-account#bd4df5810ca57fd6f512ab33a6bfacc95d1b6b23",
155158
"@parity/plugin-signer-default": "github:parity-js/plugin-signer-default#dcf8cf23bb050070b6a691413b974b5c2d7d1ce6",
156159
"@parity/plugin-signer-hardware": "github:parity-js/plugin-signer-hardware#e8b8a4e67adc37870e370d22805632d08012b9ee",
157160
"@parity/plugin-signer-qr": "github:parity-js/plugin-signer-qr#c275ba13524e9f6759079fabd10faf49cc00cfc0",

src/serviceWorker.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Copyright 2015-2017 Parity Technologies (UK) Ltd.
2+
// This file is part of Parity.
3+
4+
// Parity is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU General Public License as published by
6+
// the Free Software Foundation, either version 3 of the License, or
7+
// (at your option) any later version.
8+
9+
// Parity is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU General Public License for more details.
13+
14+
// You should have received a copy of the GNU General Public License
15+
// along with Parity. If not, see <http://www.gnu.org/licenses/>.

webpack/app.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const ExtractTextPlugin = require('extract-text-webpack-plugin');
2424
const WebpackErrorNotificationPlugin = require('webpack-error-notification');
2525
const CopyWebpackPlugin = require('copy-webpack-plugin');
2626
const HtmlWebpackPlugin = require('html-webpack-plugin');
27+
const ServiceWorkerWebpackPlugin = require('serviceworker-webpack-plugin');
2728

2829
const rulesEs6 = require('./rules/es6');
2930
const rulesParity = require('./rules/parity');
@@ -238,7 +239,12 @@ module.exports = {
238239
)
239240
]),
240241
{}
241-
)
242+
),
243+
244+
new ServiceWorkerWebpackPlugin({
245+
entry: path.join(__dirname, '../src/serviceWorker.js'),
246+
publicPath: path.join(__dirname, '../.build/')
247+
}),
242248
);
243249
}
244250

0 commit comments

Comments
 (0)