Commit Graph

50 Commits

Author SHA1 Message Date
Svallinn 7e94abb3b4
Main+App+Store: Implement basic setting sync between Electron windows
The app utilizes the Electron IPC to communicate settings' updates
to the other existing windows.

This is still at a fairly rudimentary stage, since some settings are
not syncing at all, while other settings have related side effects that
are not currently being propagated to the remaining windows.

An example of this would be the 'uiScale' setting, in which
the value is properly synced, but the app's actual scaling isn't.
2021-06-11 02:56:39 +01:00
Svallinn 94fcacc308
Main: Rearrange/refactor the main process' logic
This commit removes duplicated handler logic related to the app's
'ready' event. In addition, it rearranges the template used to build the
app's menu in order to make it a bit easier to understand.
2021-06-07 19:10:35 +01:00
Svallinn 1c57c2b0d7
Refactor/Main: Remove `enableRemoteModule` option from `webPreferences` 2021-05-23 04:39:48 +01:00
Svallinn af0353ea32
Refactor: Erase `@electron/remote` references and other dangerous calls
The `remote` module is deprecated and `@electron/remote` is unnecessary,
since the `ipcMain` and `ipcRenderer` can replace their functionality,
providing better performance and better security.

All other dangerous calls (mainly pulling main process constructs into
the renderer process) have also been removed.
2021-05-22 00:49:48 +01:00
Svallinn 1279944c9d
Chore: Remove devtron from dev dependencies
Devtron is currently broken and entirely unmaintained.
The latest release was on Oct 7, 2016.
2021-05-10 06:17:00 +01:00
Svallinn 640ed6818a
Main: Clear cache and storage data only when the last window is closed
This prevents the CONSENT cookie from being deleted after a window
is closed by the user, making it so that the user can no
longer load the comment section.
2021-05-10 06:01:35 +01:00
Svallinn b37c46f12d
Revert unintended merged code from "Update package-lock.json"
This was caused by an unexpected Weblate interaction with a force push.
2021-05-10 05:59:48 +01:00
Svallinn 36d94c812d
Update package-lock.json 2021-05-09 05:48:03 +01:00
Svallinn 91776441f1
chore: bump electron version to 12.0.6
* Bump electron version to 12.0.6
* Move web content clean up logic to window close event

Reference from electron release notes:
> Fixed the window-all-closed event being emitted while the last
BrowserWindow was still in the process of being closed.
2021-05-01 03:50:52 +01:00
PikachuEXE 4101a4a167
! Fix new window not created when all windows closed and app activated (#1203)
Since the app is coded to quit for non MacOS when all windows are closed
This issue happens only on MacOS
2021-04-29 20:51:23 +00:00
PikachuEXE ebc829cef0
Add "open new window" button (#1153) 2021-04-15 20:28:35 +02:00
Svallinn 9031acc260
Merge branch 'development' into 946-version-flag 2021-04-08 19:05:01 +00:00
Preston ae76aebc97 Remove unneeded session import 2021-04-08 09:42:24 -04:00
Svallinn 9b92db3522
Remove stray spaces 2021-04-08 03:13:40 +00:00
Svallinn 9ff0994cee
Merge branch 'development' into 946-version-flag 2021-04-08 03:07:15 +00:00
Preston 01da5277ee Add more URLs for consent cookie 2021-04-07 22:40:35 -04:00
Preston 3048e39106
Add 'enable-file-cookies' flag 2021-04-07 17:54:44 -04:00
Preston 8f64b083aa
Remove trailing spaces 2021-04-07 17:38:09 -04:00
Preston e155426700
Add second consent cookie for compatibility 2021-04-07 17:33:56 -04:00
Preston 7b3f67073b Add consent cookie to fix comments and various problems 2021-04-07 16:39:14 -04:00
Svallinn 998c5c767c
Merge branch 'development' into 946-version-flag 2021-03-14 18:58:15 +00:00
Preston dfc45ee9a6
Fix: Store proper windows bounds when maximized 2021-03-10 21:01:21 -05:00
Svallinn cb29074a08
Remove unnecessary call to app.setName 2021-03-07 16:08:03 +00:00
Svallinn 3734bad6ef
Support for version flag 2021-03-07 16:07:09 +00:00
Preston 5c9bb5e9fd Update index.js 2021-03-03 11:42:49 -05:00
Preston 1e45ef2b92 Add ignore-gpu-blacklist flag 2021-03-03 08:40:21 -05:00
Preston a3fe91bef5 Update to Webpack 5 and Electron 12 2021-03-02 22:51:01 -05:00
Preston 6d7d874bc0 Add Proxy configuration to settings. Fix ft-video-list height when using list display 2021-01-14 13:51:33 -05:00
Preston 176d88bb0c Fix CLI argument logic again 2020-12-20 21:28:24 -05:00
Preston 52c5dc5322 Fix CLI logic for Linux / Windows 2020-12-18 17:24:15 -05:00
Preston 46c271aa22 Fix linter issues 2020-10-27 13:47:40 -04:00
Colin Fleming 6466860eb8
Fix freetube:// protocol handling on macOS. (#669)
1. Handle open-url events.
2. Make protocol handling more robust on Win/Linux based on SO post.
3. Change 'ping' message to more descriptive 'openUrl' message.
4. Remove freetube:// protocol in main, and unify URL handling logic.
2020-10-15 09:33:25 -04:00
Preston 66e96adacf Explicitly enable smooth scrolling is setting is disabled 2020-10-09 09:35:04 -04:00
Preston d6e4a1e9cc Add Setting to disable smooth scrolling 2020-10-07 09:57:22 -04:00
Preston 54a3810a53 Add protocol to enable extension support 2020-10-04 16:31:07 -04:00
Preston b7013be907 Remember where app was located on close 2020-09-20 14:54:23 -04:00
Preston feea541fdb Update Dependencies, Fix linter, Hide Refresh Button for Trending / Popular 2020-08-24 17:52:39 -04:00
stecorb 2d352fcf33 Fix icon from showing up on certain window systems 2020-08-22 01:15:18 +02:00
Preston 6f18da0986 Remove icon from build 2020-08-21 10:16:25 -04:00
Preston 1b0ee4c15c Fix icon from showing up on certain window systems 2020-08-21 08:53:08 -04:00
Preston 4203ff4ba3 Fix some navigation, clear data on exit, and add more toast messages 2020-08-20 21:20:22 -04:00
Preston f414c0f4b7
Merge pull request #47 from Airradda/menubar
Enable "autoHideMenuBar" on Electron window
2020-07-11 15:06:43 -04:00
Preston af6d4abf3a Hide App Window until fully loaded 2020-06-24 22:02:23 -04:00
Preston 4bc5b1d608 Allow more than one instance of the app. 2020-06-21 23:03:51 -04:00
Airradda 93688dc2b4 Enable "autoHideMenuBar" on electron window 2020-06-21 04:16:03 -05:00
Preston 8d3a31676f Update Electron and other dependencies 2020-06-19 18:11:21 -04:00
Preston 864d792ffc Allow App to Autoplay videos while minimized 2020-06-06 17:54:40 -04:00
Preston 8fade0c9c1 Update dependencies and add context menu for Electron 2020-04-21 16:22:41 -04:00
Preston 7283d7fb36 Remove minimum height and width for app screen size 2020-03-26 23:04:50 -04:00
Preston ded6534d16 Push Latest Code to Repository 2020-02-16 13:30:00 -05:00