configLoader.js 303 B

123456789
  1. const config = document.createElement('script')
  2. config.id = 'configJS'
  3. config.src = 'config.js'
  4. config.type = 'text/javascript'
  5. document.head.appendChild(config)
  6. setInterval(function () {
  7. document.head.removeChild(document.getElementById('configJS'))
  8. document.head.appendChild(config)
  9. }, 60 * 1000)