Skip to content
This repository has been archived by the owner on May 22, 2019. It is now read-only.

Commit

Permalink
don't throw exception in mock.js
Browse files Browse the repository at this point in the history
  • Loading branch information
lots0logs committed Oct 14, 2016
1 parent 04b0452 commit e0f407f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions themes/_vendor/js/mock.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@
*/


if ( 'lightdm' in window ) {
throw new Error('Cannot use LightDM Mock while the greeter is running!');
}
if ( ! 'lightdm' in window ) {


/** @ignore */
Expand Down Expand Up @@ -852,7 +850,6 @@ MockData = () => ({
});


if ( ! 'lightdm' in window ) {
new ConfigFile();
new GreeterUtil();
new LightDMGreeter();
Expand Down

0 comments on commit e0f407f

Please sign in to comment.