Skip to content

Commit

Permalink
removing the angular recurring call to disable some promotions as I s…
Browse files Browse the repository at this point in the history
…uspect is creating a wee leak (#1152)
  • Loading branch information
IsmaelMartinez authored Mar 22, 2024
1 parent aafed1c commit b4bcdd9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 26 deletions.
25 changes: 0 additions & 25 deletions app/browser/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,31 +15,6 @@
});
});

function disablePromoteStuff(injector) {
injector.get('settingsService').appConfig.promoteMobile = false;
injector.get('settingsService').appConfig.promoteDesktop = false;
injector.get('settingsService').appConfig.hideGetAppButton = true;
injector.get('settingsService').appConfig.enableMobileDownloadMailDialog = false;
}

function modifyAngularSettingsWithTimeout() {
setTimeout(() => {
try {
let injector = angular.element(document).injector();

if (injector) {
disablePromoteStuff(injector);

injector.get('settingsService').settingsService.refreshSettings();
}
} catch (error) {
if (error instanceof ReferenceError) {
modifyAngularSettingsWithTimeout();
}
}
}, 4000);
}

Object.defineProperty(navigator.serviceWorker, 'register', {
value: () => {
return Promise.reject();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "teams-for-linux",
"version": "1.4.14",
"version": "1.4.15",
"main": "app/index.js",
"description": "Unofficial client for Microsoft Teams for Linux",
"homepage": "https://github.com/IsmaelMartinez/teams-for-linux",
Expand Down

0 comments on commit b4bcdd9

Please sign in to comment.