Skip to content

Commit

Permalink
Removing the did-fail-load listener and associated reload
Browse files Browse the repository at this point in the history
  • Loading branch information
IsmaelMartinez committed Oct 22, 2018
1 parent 081c64f commit 5c43844
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
7 changes: 1 addition & 6 deletions app/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,6 @@ app.on('ready', () => {
}
});

window.webContents.on('did-fail-load', (event, errorCode, errorDescription, validatedURL, isMainFrame, frameProcessId, frameRoutingId) => {
console.error('did-fail-load. Trying to reload.');
window.reload();
});

window.webContents.on('new-window', (event, url) => {
event.preventDefault();
shell.openExternal(url);
Expand Down Expand Up @@ -119,4 +114,4 @@ app.on('ready', () => {
if (config.webDebug) {
window.openDevTools();
}
});
});
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "teams-for-linux",
"version": "0.1.5",
"version": "0.1.6",
"description": "Microsoft Teams for Linux",
"main": "lib/index.js",
"author": "Ivelin Velkov <ivelin.velkov@gmail.com>",
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": "0.1.5",
"version": "0.1.6",
"description": "Unofficial client for Microsoft Teams for Linux",
"homepage": "https://github.com/JamieMagee/teams-for-linux",
"keywords": [
Expand Down

0 comments on commit 5c43844

Please sign in to comment.