OnlineJudgeFE/build/dev-client.js
2017-11-13 10:12:11 +08:00

11 lines
258 B
JavaScript

/* eslint-disable */
'use strict'
require('eventsource-polyfill')
var hotClient = require('webpack-hot-middleware/client?noInfo=true&reload=true')
hotClient.subscribe(function (event) {
if (event.action === 'reload') {
window.location.reload()
}
})