Fix Social's to also show everything else

This commit is contained in:
Maroxy 2021-11-29 05:14:07 +01:00
parent 4216b26657
commit 1528a382cc
No known key found for this signature in database
GPG key ID: F4B27EADB21E3021
2 changed files with 7 additions and 5 deletions

View file

@ -31,7 +31,9 @@
</div> </div>
</div> </div>
<div id="launchcontent"></div> <div id="launchcontent">
<iframe id="socials" src="" scrolling="no" style="position: absolute; border: 0; top: 0; left: 0;" width="100%" height="100%"></iframe>
</div>
<div id="settings"> <div id="settings">
<img src="../images/gear.png" class="unactive"> <img src="../images/gear.png" class="unactive">

View file

@ -302,8 +302,8 @@ export default class LauncherUI
public static updateSocial (): void public static updateSocial (): void
{ {
const socialUri = `https://${constants.placeholders.lowercase.first}.${constants.placeholders.lowercase.company}.com/launcher/10/${LauncherLib.getConfig('lang.launcher')}?api_url=https%3A%2F%2Fapi-os-takumi.${constants.placeholders.lowercase.company}.com%2Fhk4e_global&key=gcStgarh&prev=false`; const socialUri = `https://${constants.placeholders.lowercase.first}.${constants.placeholders.lowercase.company}.com/launcher/10/${LauncherLib.getConfig('lang.launcher')}?api_url=https%3A%2F%2Fapi-os-takumi.${constants.placeholders.lowercase.company}.com%2Fhk4e_global&key=gcStgarh&prev=false`;
$('#socials').attr('src', socialUri);
fetch(socialUri) /* fetch(socialUri)
.then(res => res.text()) .then(res => res.text())
.then(body => { .then(body => {
$('#__layout').remove(); $('#__layout').remove();
@ -313,11 +313,11 @@ export default class LauncherUI
// TODO // TODO
/*$('#launchcontent .home__main .swiper-button-prev').on('click', () => { /*$('#launchcontent .home__main .swiper-button-prev').on('click', () => {
});*/ });
$('#launchcontent .home__main .home-swiper-wrap').remove(); $('#launchcontent .home__main .home-swiper-wrap').remove();
$('#launchcontent .home__main .home-news').remove(); $('#launchcontent .home__main .home-news').remove();
}); }); */
} }
public static updateLang (lang: string|null = null): void public static updateLang (lang: string|null = null): void