mirror of
https://github.com/QingdaoU/OnlineJudgeFE.git
synced 2024-12-28 07:21:50 +00:00
11 lines
258 B
JavaScript
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()
|
|
}
|
|
})
|