jcinfo-utils 1.0.11 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/update.js +3 -6
package/package.json
CHANGED
package/update.js
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
/* eslint-disable no-unused-vars */
|
|
2
1
|
import './update.css'
|
|
3
2
|
|
|
4
3
|
const cMessagUpdating =
|
|
5
4
|
'<div class="c-line"></div>' +
|
|
6
5
|
'<i class="fas fa-info-circle"></i>' +
|
|
7
|
-
|
|
8
|
-
'<div class="c-msg">Nova versão encontrada!' +
|
|
9
|
-
'<span>Baixando atualizações e reiniciando em seguida...</span></div>'
|
|
6
|
+
'Nova versão disponível, atualizando...'
|
|
10
7
|
|
|
11
8
|
let divUpdate = document.querySelector('#update')
|
|
12
9
|
|
|
@@ -16,7 +13,7 @@ if (!divUpdate) {
|
|
|
16
13
|
document.body.appendChild(divUpdate)
|
|
17
14
|
}
|
|
18
15
|
|
|
19
|
-
function showMessage(
|
|
16
|
+
function showMessage() {
|
|
20
17
|
divUpdate.innerHTML = cMessagUpdating
|
|
21
18
|
divUpdate.classList.add('c-update')
|
|
22
19
|
console.info('Mostrando msg...')
|
|
@@ -54,4 +51,4 @@ export default function checkUpdate() {
|
|
|
54
51
|
}
|
|
55
52
|
}
|
|
56
53
|
|
|
57
|
-
showMessage(
|
|
54
|
+
//showMessage()
|