From 9db98cc9f2b2fe66e3136f9971951d7513fb0208 Mon Sep 17 00:00:00 2001 From: reis <29177546+reisxd@users.noreply.github.com> Date: Sun, 8 Sep 2024 23:11:23 +0300 Subject: [PATCH] fix: dont complicate things dont ask why i did it like that --- tizenbrew-app/TizenBrew/js/wsClient.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/tizenbrew-app/TizenBrew/js/wsClient.js b/tizenbrew-app/TizenBrew/js/wsClient.js index e38ea5f..ac2f256 100644 --- a/tizenbrew-app/TizenBrew/js/wsClient.js +++ b/tizenbrew-app/TizenBrew/js/wsClient.js @@ -55,13 +55,6 @@ function onMessage(msg) { send({ type: 'startService', package: JSON.parse(localStorage.getItem('autoLaunchService')) }); } send({ type: 'getServiceStatuses' }); - - fetch('config.xml').then(res => res.text()).then(xml => { - const parser = new DOMParser(); - const xmlDoc = parser.parseFromString(xml, 'text/xml'); - const version = xmlDoc.getElementsByTagName('widget')[0].attributes.version.nodeValue - document.getElementById('version').innerText = `v${version}`; - }); } else { send({ type: 'canLaunchInDebug' }); } @@ -171,6 +164,7 @@ function onMessage(msg) { } function onOpen() { + document.getElementById('version').innerText = `v${tizen.application.getAppInfo().version}`; // We have to get the debug status to know if we need to relaunch in debug mode. const data = tizen.application.getCurrentApplication().getRequestedAppControl().appControl.data; if (data.length > 0 && data[0].value.length > 0) {