fixes several typos

This commit is contained in:
Sven Huester
2018-12-02 14:07:31 +01:00
parent 876c4ff8e0
commit fa961654f3
8 changed files with 17 additions and 17 deletions

View File

@@ -77,7 +77,7 @@ export default class MainPage extends React.Component {
});
});
// can't switch tabs sequencially for some reason...
// can't switch tabs sequentially for some reason...
ipcRenderer.on('switch-tab', (event, key) => {
this.handleSelect(key);
});

View File

@@ -85,7 +85,7 @@ export default class MattermostView extends React.Component {
}
});
// Open link in browserWindow. for exmaple, attached files.
// Open link in browserWindow. for example, attached files.
webview.addEventListener('new-window', (e) => {
const currentURL = url.parse(webview.getURL());
const destURL = url.parse(e.url);
@@ -98,7 +98,7 @@ export default class MattermostView extends React.Component {
if (destURL.path.match(/^\/api\/v[3-4]\/public\/files\//)) {
ipcRenderer.send('download-url', e.url);
} else {
// New window should disable nodeIntergration.
// New window should disable nodeIntegration.
window.open(e.url, remote.app.getName(), 'nodeIntegration=no, show=yes');
}
} else {
@@ -119,7 +119,7 @@ export default class MattermostView extends React.Component {
if (this.props.onSelectSpellCheckerLocale) {
this.props.onSelectSpellCheckerLocale(locale);
}
webview.send('set-spellcheker');
webview.send('set-spellchecker');
},
});
this.setState({isContextMenuAdded: true});

View File

@@ -141,7 +141,7 @@ function getUnreadCount() {
const activeChannel = document.querySelector('.active .sidebar-channel');
const closeButton = activeChannel.getElementsByClassName('btn-close');
if (closeButton.length === 1 && closeButton[0].getAttribute('aria-describedby') === 'remove-dm-tooltip') {
// If active channel is DM, all posts is treated as menion.
// If active channel is DM, all posts is treated as mention.
isMentioned = true;
break;
} else {
@@ -192,7 +192,7 @@ function setSpellChecker() {
resetMisspelledState();
}
setSpellChecker();
ipcRenderer.on('set-spellcheker', setSpellChecker);
ipcRenderer.on('set-spellchecker', setSpellChecker);
// mattermost-webapp is SPA. So cache is not cleared due to no navigation.
// We needed to manually clear cache to free memory in long-term-use.

View File

@@ -176,7 +176,7 @@ const trayImages = (() => {
}
})();
// If there is already an instance, activate the window in the existing instace and quit this one
// If there is already an instance, activate the window in the existing instance and quit this one
if (app.makeSingleInstance((commandLine/*, workingDirectory*/) => {
// Protocol handler for win32
// argv: An array of the second instances (command line / deep linked) arguments
@@ -330,7 +330,7 @@ app.on('certificate-error', (event, webContents, url, error, certificate, callba
});
app.on('gpu-process-crashed', (event, killed) => {
console.log(`The GPU process has crached (killed = ${killed})`);
console.log(`The GPU process has crashed (killed = ${killed})`);
});
const loginCallbackMap = new Map();