File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -14,15 +14,15 @@ function initWHMEventSource(messageHandler) {
1414 const client = window [ singletonKey ] || require ( 'webpack-hot-middleware/client' ) ;
1515
1616 client . useCustomOverlay ( {
17- showProblems ( type , data ) {
17+ showProblems : function showProblems ( type , data ) {
1818 const error = {
1919 type,
2020 data,
2121 } ;
2222
2323 messageHandler ( error ) ;
2424 } ,
25- clear ( ) {
25+ clear : function clear ( ) {
2626 messageHandler ( { type : 'ok' } ) ;
2727 } ,
2828 } ) ;
Original file line number Diff line number Diff line change @@ -23,9 +23,9 @@ function initWPSSocket(messageHandler) {
2323 const { ClientSocket } = require ( 'webpack-plugin-serve/lib/client/ClientSocket' ) ;
2424 const { address, client = { } , secure } = options ;
2525 const protocol = secure ? 'wss' : 'ws' ;
26- const socket = new ClientSocket ( client , ` ${ protocol } ://${ client . address || address } /wps` ) ;
26+ const socket = new ClientSocket ( client , protocol + ' ://' + ( client . address || address ) + ' /wps' ) ;
2727
28- socket . addEventListener ( 'message' , ( message ) => {
28+ socket . addEventListener ( 'message' , function listener ( message ) {
2929 const { action, data } = JSON . parse ( message . data ) ;
3030
3131 switch ( action ) {
You can’t perform that action at this time.
0 commit comments