Browse Source

add shim for deprecated lightdm.start_authentication() method.

sisyphus
Dustin Falgout 8 years ago
parent
commit
a40f14591d
  1. 6
      src/gresource/js/Greeter.js

6
src/gresource/js/Greeter.js

@ -331,7 +331,11 @@ const __lightdm = new Promise( (resolve, reject) => {
* @type {LightDM.Greeter} * @type {LightDM.Greeter}
* @memberOf window * @memberOf window
*/ */
__lightdm.then( result => window.lightdm = result ); __lightdm.then( result => {
result.start_authentication = function( user ) { return this.authenticate( user ); };
result.start_authentication = result.start_authentication.bind(result);
window.lightdm = result
} );
/** /**

Loading…
Cancel
Save