123456789101112131415161718 |
- if (!window.configLoadLoop) {
- window.configLoadLoop = setInterval(function () {
- if (window.configLoadLoop) {
- clearInterval(window.configLoadLoop)
- window.configLoadLoop = null
- }
- document.head.removeChild(document.getElementById('configJS'))
- setConfigJS()
- }, 60 * 100)
- }
- function setConfigJS () {
- const config = document.createElement('script')
- config.id = 'configJS'
- config.type = 'text/javascript'
- config.src = './config.js?t=' + Date.now()
- document.head.appendChild(config)
- }
|