Skip to content

Commit 010a034

Browse files
committed
use window.lightdm.hostname over lightdm.hostname
1 parent 4e412e0 commit 010a034

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

client/data.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import packageJSON from '../package.json';
2-
import { lightdm } from 'nody-greeter-types/index'
32

43

54
const PATH_DATA_JSON: string = 'data.json';
@@ -119,7 +118,7 @@ export class Data {
119118
this.pkgVersion = packageJSON.version;
120119

121120
// Get hostname from LightDM
122-
this.hostname = lightdm.hostname;
121+
this.hostname = window.lightdm?.hostname || 'unknown-hostname';
123122

124123
// Set up images
125124
this.loginScreenWallpaper = new GreeterImage(PATH_WALLPAPER_LOGIN);

0 commit comments

Comments
 (0)