Skip to content

Commit

Permalink
fix: fix error messages not getting displayed
Browse files Browse the repository at this point in the history
  • Loading branch information
reisxd committed Nov 9, 2024
1 parent 7a2d0ec commit ba77ca4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tizenbrew-app/TizenBrew/js/wsClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function onMessage(msg) {
window.selectedItem = document.querySelector(".selected");
window.currentRow = selectedItem.parentElement.parentElement;
} else {
document.getElementById('navigateText').innerHTML = window.i18n.t('error.noModules');
document.getElementById('navigateText').innerHTML = window.i18n.t('errors.noModules');
window.selectedItem.style.display = 'none';
}
break;
Expand Down Expand Up @@ -146,14 +146,14 @@ function onMessage(msg) {
send({ type: 'relaunchInDebug', isTizen3, tvIp: webapis.network.getIp() });
tizen.application.getCurrentApplication().exit();
} else {
showError(window.i18n.t('error.debuggingNotEnabled'));
showError(window.i18n.t('errors.debuggingNotEnabled'));
}
break;
}
case 'serviceStatuses': {
const crashedServices = message.services.filter(service => service.hasCrashed);
if (crashedServices.length > 0) {
showError(window.i18n.t('error.crashedServices', { services: crashedServices.map(service => service.name).join(', ') }));
showError(window.i18n.t('errors.crashedServices', { services: crashedServices.map(service => service.name).join(', ') }));
}
break;
}
Expand Down Expand Up @@ -186,7 +186,7 @@ function autoLaunchModule() {
const autoLaunch = JSON.parse(localStorage.getItem('autoLaunch'));
const app = document.querySelector(`[data-packagename="${autoLaunch.name}"]`);
if (!app) {
showError(window.i18n.t('error.moduleNotFound', { moduleName: autoLaunch.name }));
showError(window.i18n.t('errors.moduleNotFound', { moduleName: autoLaunch.name }));
return;
} else {
const appPath = app.getAttribute('data-appPath');
Expand Down

0 comments on commit ba77ca4

Please sign in to comment.