Anders Kaseorg
2f7529cd71
WebView: Get event parameters via WebContents rather than WebviewTag.
...
Works around https://github.com/electron/electron/issues/31924 .
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2022-03-04 16:56:44 -08:00
Anders Kaseorg
76a879e4fd
WebView: Convert WebviewTag methods to WebContents methods.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2022-03-04 16:56:44 -08:00
Anders Kaseorg
869361bac3
WebView: Type $el as required.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2022-03-04 16:56:44 -08:00
Anders Kaseorg
751eb6ef98
Switch electron.remote to @electron/remote.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2022-03-04 16:56:44 -08:00
Anders Kaseorg
892f7c8e47
Strongly type config options.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2021-04-28 20:29:40 -07:00
Anders Kaseorg
79f9362736
Strongly type IPC messages.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2021-04-25 20:44:05 -07:00
Anders Kaseorg
9a81ade1c8
typescript: Enable strictNullChecks.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2021-04-02 15:19:42 -07:00
Anders Kaseorg
67228d295d
Reformat all code with Prettier.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2021-03-31 20:04:00 -07:00
Anders Kaseorg
851bb7904f
Move modules shared between main and renderer processes to app/common.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2021-03-29 18:01:52 -07:00
Anders Kaseorg
8d66f05924
xo: Sort imports with import/order.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2020-07-23 23:06:41 -07:00
Abhigyan Khaund
82421d843a
downloadFiles: Fix issue of showing two Save As dialog box.
...
Currently, there are two dialog boxes shown while downloading files (in Ubuntu). One by default behavior of electron and other by the dialog box for save as feature.
This PR fixes this issue by using electron's save as dialog box.
Fixes : #947 .
2020-05-01 17:55:46 +05:30
Anders Kaseorg
ba191c3699
xo: Enable object-curly-spacing.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-04-30 13:48:18 -07:00
Anders Kaseorg
5ae2a717fa
xo: Enable padding-line-between-statements.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-04-30 13:48:18 -07:00
Anders Kaseorg
bb88a7b7a8
xo: Handle floating promises.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-04-30 13:48:18 -07:00
Anders Kaseorg
a03f569af9
CVE-2020-10857: Whitelist safe URL protocols for shell.openExternal.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-30 19:33:24 -07:00
Anders Kaseorg
af59bb7c99
handleExternalLink: Do not navigate the current window.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-30 19:33:24 -07:00
Anders Kaseorg
4390966a62
Always show downloaded files in file manager.
...
shell.openItem is unsafe.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-30 19:33:24 -07:00
Anders Kaseorg
d3bcd7306a
typescript: Switch to ES import/export syntax.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-04 17:21:03 -08:00
Manav Mehta
20c6f487c4
typescript: Implement some TODOs.
2020-03-04 14:21:25 -08:00
Tim Abbott
eb2988a5e4
dependencies: Update typescript and typescript-eslint.
...
The changes are mostly done via `xo --fix`; the other changes are
either trivial or disabling new linter rules that we plan to address
in future commits.
2020-02-29 23:39:55 -08:00
Ross Brunton
9582d32de8
Added option to select download locations.
...
Added an option that, when enabled, will mean any file downloads that
would normally go to ~/Downloads (or wherever), in fact prompt.
2020-01-21 16:41:56 +05:30
vsvipul
506982b4c6
typescript: Migrate handle-external-link.js to typescript.
2019-07-17 00:22:17 +05:30