@@ -134,9 +131,7 @@
- {#await launcher.getSocial() then uri}
-
- {/await}
+
diff --git a/src/sass/index.sass b/src/sass/index.sass
index c1b9e5f..8885ad6 100644
--- a/src/sass/index.sass
+++ b/src/sass/index.sass
@@ -1,6 +1,6 @@
@import "basic"
-img.background
+#background
position: absolute
width: 100%
diff --git a/src/ts/launcher/State.ts b/src/ts/launcher/State.ts
index ed0f523..6e850c0 100644
--- a/src/ts/launcher/State.ts
+++ b/src/ts/launcher/State.ts
@@ -17,6 +17,7 @@ import DXVK from '../core/DXVK';
import Locales from './Locales';
import Git from '../core/Git';
import constants from '../Constants';
+import Background from './Background';
declare const Neutralino;
@@ -24,6 +25,9 @@ export default class State
{
public launcher: Launcher;
+ public backgroundImage: HTMLElement;
+ public socialsIframe: HTMLElement;
+
public launchButton: HTMLElement;
public pauseButton: HTMLElement;
public predownloadButton: HTMLElement;
@@ -53,11 +57,21 @@ export default class State
{
this.launcher = launcher;
+ this.backgroundImage = document.getElementById('background');
+ this.socialsIframe = document.getElementById('social-iframe');
+
this.launchButton = document.getElementById('launch');
this.pauseButton = document.getElementById('pause');
this.predownloadButton = document.getElementById('predownload');
this.settingsButton = document.getElementById('settings');
+ Background.get().then((uri) => {
+ if (uri)
+ this.backgroundImage.setAttribute('src', uri);
+ });
+
+ launcher.getSocial().then((uri) => this.socialsIframe.setAttribute('src', uri));
+
this.launchButton.onclick = () => {
if (this.events[this._state])
{