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

Commit e0f407f

Browse files
committed
don't throw exception in mock.js
1 parent 04b0452 commit e0f407f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

themes/_vendor/js/mock.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@
2626
*/
2727

2828

29-
if ( 'lightdm' in window ) {
30-
throw new Error('Cannot use LightDM Mock while the greeter is running!');
31-
}
29+
if ( ! 'lightdm' in window ) {
3230

3331

3432
/** @ignore */
@@ -852,7 +850,6 @@ MockData = () => ({
852850
});
853851

854852

855-
if ( ! 'lightdm' in window ) {
856853
new ConfigFile();
857854
new GreeterUtil();
858855
new LightDMGreeter();

0 commit comments

Comments
 (0)