mirror of
https://gitlab.com/MrFry/moodle-test-userscript
synced 2025-04-01 20:22:48 +02:00
Sending vesrion to server on info request
This commit is contained in:
parent
b9b5a82045
commit
fd389046a1
1 changed files with 1 additions and 1 deletions
|
@ -1557,7 +1557,7 @@
|
|||
return new Promise((resolve, reject) => {
|
||||
xmlhttpRequest({
|
||||
method: 'GET',
|
||||
url: serverAdress + 'infos?version=true&motd=true&subjinfo=true',
|
||||
url: serverAdress + 'infos?version=true&motd=true&subjinfo=true&cversion=' + info().script.version,
|
||||
onload: function (response) {
|
||||
resolve(JSON.parse(response.responseText))
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue