Skip to content

Commit

Permalink
fix: dont complicate things
Browse files Browse the repository at this point in the history
dont ask why i did it like that
  • Loading branch information
reisxd committed Sep 8, 2024
1 parent 1733f93 commit 9db98cc
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions tizenbrew-app/TizenBrew/js/wsClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' });
}
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 9db98cc

Please sign in to comment.