Skip to content

Commit

Permalink
Removes english from zoom captions; Adds link to zoom overlay instruc…
Browse files Browse the repository at this point in the history
…tions (#1204)
  • Loading branch information
Gauravjeetsingh authored Sep 18, 2020
1 parent cf4dce0 commit a7f5660
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
5 changes: 1 addition & 4 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -347,14 +347,11 @@ const showLine = async (line, socket = io) => {
socket.emit('show-line', payload);
}
const zoomToken = store.get('userPrefs.app.zoomToken');
const english =
store.get('userPrefs.slide-layout.fields.display-translation') &&
store.get('userPrefs.slide-layout.language-settings.translation-language');
if (zoomToken) {
try {
await fetch(`${zoomToken}&seq=${seq}`, {
method: 'POST',
body: `${line.Line.Unicode}\n${english ? line.Line.English : ''}\n`,
body: `${line.Line.Unicode}\n`,
});
seq += 1;
} catch (e) {
Expand Down
24 changes: 17 additions & 7 deletions www/main/toolbar.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const h = require('hyperscript');
const { remote } = require('electron');
const { remote, shell } = require('electron');
const anvaad = require('anvaad-js');
const isOnline = require('is-online');
const Noty = require('noty');
Expand Down Expand Up @@ -356,12 +356,22 @@ const zoomContent = h('div.zoom-content-wrapper', [
},
}),
]),
h('button.instructions-btn', [
h('img.play-icon', {
src: 'assets/img/icons/play-button.svg',
}),
h('span', [i18n.t('TOOLBAR.ZOOM_CC_OVERLAY.INSTRUCTIONS_BUTTON')]),
]),
h(
'button.instructions-btn',
[
h('img.play-icon', {
src: 'assets/img/icons/play-button.svg',
}),
h('span', [i18n.t('TOOLBAR.ZOOM_CC_OVERLAY.INSTRUCTIONS_BUTTON')]),
],
{
onclick: () => {
shell.openExternal(
'https://support.khalisfoundation.org/en/support/solutions/articles/63000255302-how-to-use-zoom-overlay-with-sikhitothemax',
);
},
},
),
h('div.quick-container', [
h('div.quick-title', [i18n.t('TOOLBAR.ZOOM_CC_OVERLAY.INSTRUCTIONS_HEADING')]),
h('ol.quick-steps', [
Expand Down

0 comments on commit a7f5660

Please sign in to comment.