1.0.1 • Published 12 months ago

updated-auto-refresh v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
12 months ago

Refresh the page when the page is updated

Usage

import Updator/{ proxyUpdater }  from './lib/bundle.js'
const instance = new Updator({ time: 5000, url: '/',cb:()=>{} })

time:Specify how often to check the file

url:Specify where to check the file cb: Callback function when the file is changed. When the file is changed will refresh the page Suggest to set a cb ,eg open a Confirm box when you set instance.stop = true , will stop the work untile instance.stop = false

1.0.1

12 months ago

1.0.0

12 months ago