mirror of
https://github.com/cytodev/LightDMMock.git
synced 2024-11-24 23:19:49 +01:00
Adds documentation for checkUpdate method
This commit is contained in:
parent
506274c496
commit
eeefc1152d
@ -458,6 +458,13 @@ window.logCall = function(name, args) {
|
|||||||
return window.console.info("[lightdm." + name + "] called with 0 arguments");
|
return window.console.info("[lightdm." + name + "] called with 0 arguments");
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* global helper checkForUpdate
|
||||||
|
* compares curentVersion with the tag name of GitHub's latest release and
|
||||||
|
* prompts the user to download a new version if it is available.
|
||||||
|
*
|
||||||
|
* @param {String} currentVersion [the current tag version]
|
||||||
|
*/
|
||||||
window.checkForUpdate = function(currentVersion) {
|
window.checkForUpdate = function(currentVersion) {
|
||||||
var request = new XMLHttpRequest();
|
var request = new XMLHttpRequest();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user