We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e412e0 commit 010a034Copy full SHA for 010a034
client/data.ts
@@ -1,5 +1,4 @@
1
import packageJSON from '../package.json';
2
-import { lightdm } from 'nody-greeter-types/index'
3
4
5
const PATH_DATA_JSON: string = 'data.json';
@@ -119,7 +118,7 @@ export class Data {
119
118
this.pkgVersion = packageJSON.version;
120
121
// Get hostname from LightDM
122
- this.hostname = lightdm.hostname;
+ this.hostname = window.lightdm?.hostname || 'unknown-hostname';
123
124
// Set up images
125
this.loginScreenWallpaper = new GreeterImage(PATH_WALLPAPER_LOGIN);
0 commit comments