3
0
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:
Roel Walraven 2016-08-04 18:35:28 +02:00
parent 506274c496
commit eeefc1152d

View File

@ -458,6 +458,13 @@ window.logCall = function(name, args) {
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) {
var request = new XMLHttpRequest();