Skip to content

Commit

Permalink
fix xo arrow-body-style and indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
manavmehta committed Jun 6, 2020
1 parent 1fb2970 commit c1b20e4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
21 changes: 12 additions & 9 deletions app/renderer/js/components/context-menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,13 @@ export const contextMenu = (webview: WebView, event: any) => {
const isText = Boolean(props.selectionText.length);
const isLink = Boolean(props.linkURL);

const makeSuggestion = (suggestion: string) => {
return {
label: suggestion,
visible: true,
async click() {
await webContents.insertText(suggestion);
}
};
};
const makeSuggestion = (suggestion: string) => ({
label: suggestion,
visible: true,
async click() {
await webContents.insertText(suggestion);
}
});

let menuTemplate: Electron.MenuItemConstructorOptions[] = [{
label: t.__(`Add "${(props.selectionText as string)}" to Dictionary`),
Expand Down Expand Up @@ -82,6 +80,11 @@ export const contextMenu = (webview: WebView, event: any) => {
text: props.srcURL
});
}
}, {
type: 'separator'
}, {
label: 'Services',
role: 'services'
}];

if (props.misspelledWord) {
Expand Down
4 changes: 2 additions & 2 deletions app/renderer/js/pages/preference/general-section.ts
Original file line number Diff line number Diff line change
Expand Up @@ -510,8 +510,8 @@ export default class GeneralSection extends BaseSection {
note.innerHTML += 'You can select a maximum of 3 languages for spellchecking.';
const spellDiv = document.querySelector('#spellcheck-langs');
spellDiv.innerHTML += `
<div class="setting-description">${t.__('SpellChecker Languages')}</div>
<input name='spellcheck' placeholder='Enter Languages'>`;
<div class="setting-description">${t.__('SpellChecker Languages')}</div>
<input name='spellcheck' placeholder='Enter Languages'>`;

const availableLanguages = session.fromPartition('persist:webviewsession').availableSpellCheckerLanguages;
const languagePairs: Map<string, string> = new Map();
Expand Down

0 comments on commit c1b20e4

Please sign in to comment.