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

Commit

Permalink
Remove console errors due to service worker (#55)
Browse files Browse the repository at this point in the history
* Remove all messages from service worker

* Update plugin signer account
  • Loading branch information
amaury1093 authored and jacogr committed Apr 16, 2018
1 parent 2470a7c commit d2a16d1
Show file tree
Hide file tree
Showing 4 changed files with 118 additions and 3 deletions.
93 changes: 92 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,14 @@
"postcss-nested": "2.1.0",
"postcss-simple-vars": "4.0.0",
"progress": "1.1.8",
"promise-worker": "1.1.1",
"raw-loader": "0.5.1",
"react-addons-perf": "15.4.2",
"react-addons-test-utils": "15.6.2",
"react-hot-loader": "3.1.3",
"react-intl-aggregate-webpack-plugin": "0.0.1",
"rimraf": "2.6.2",
"serviceworker-webpack-plugin": "0.2.3",
"sinon": "1.17.7",
"sinon-as-promised": "4.0.2",
"sinon-chai": "2.8.0",
Expand All @@ -146,12 +148,13 @@
"webpack-error-notification": "0.1.6",
"webpack-hot-middleware": "2.17.1",
"websocket": "1.0.24",
"worker-loader": "1.1.1",
"yargs": "6.6.0"
},
"dependencies": {
"@parity/api": "2.1.20",
"@parity/mobx": "1.1.2",
"@parity/plugin-signer-account": "github:parity-js/plugin-signer-account#3acd84ba1965f9ee419edd04d84e13e097e6d661",
"@parity/plugin-signer-account": "github:parity-js/plugin-signer-account#bd4df5810ca57fd6f512ab33a6bfacc95d1b6b23",
"@parity/plugin-signer-default": "github:parity-js/plugin-signer-default#dcf8cf23bb050070b6a691413b974b5c2d7d1ce6",
"@parity/plugin-signer-hardware": "github:parity-js/plugin-signer-hardware#e8b8a4e67adc37870e370d22805632d08012b9ee",
"@parity/plugin-signer-qr": "github:parity-js/plugin-signer-qr#c275ba13524e9f6759079fabd10faf49cc00cfc0",
Expand Down
15 changes: 15 additions & 0 deletions src/serviceWorker.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright 2015-2017 Parity Technologies (UK) Ltd.
// This file is part of Parity.

// Parity is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// Parity is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with Parity. If not, see <http://www.gnu.org/licenses/>.
8 changes: 7 additions & 1 deletion webpack/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const ExtractTextPlugin = require('extract-text-webpack-plugin');
const WebpackErrorNotificationPlugin = require('webpack-error-notification');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const ServiceWorkerWebpackPlugin = require('serviceworker-webpack-plugin');

const rulesEs6 = require('./rules/es6');
const rulesParity = require('./rules/parity');
Expand Down Expand Up @@ -238,7 +239,12 @@ module.exports = {
)
]),
{}
)
),

new ServiceWorkerWebpackPlugin({
entry: path.join(__dirname, '../src/serviceWorker.js'),
publicPath: path.join(__dirname, '../.build/')
}),
);
}

Expand Down

0 comments on commit d2a16d1

Please sign in to comment.