Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a few type errors #1720

Merged
merged 1 commit into from
Oct 18, 2019
Merged

Fix a few type errors #1720

merged 1 commit into from
Oct 18, 2019

Conversation

mathiasvr
Copy link
Contributor

What is the purpose of this pull request? (put an "X" next to item)

[ ] Documentation update
[ ] Bug fix
[ ] New feature
[x] Other, please explain:

What changes did you make? (Give an overview)
Fixes type errors, mainly according to new Electron version.

@@ -26,7 +25,8 @@ function init () {
title: 'webtorrent-hidden-window',
useContentSize: true,
webPreferences: {
nodeIntegration: true
nodeIntegration: true,
backgroundThrottling: false // do not throttle animations/timers when page is background
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure this was in effect before, do we actually want to disable background throttling?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that it was not in inside webPreferences I assume it was in it's default state: true. So I wouldn't change it here 😅

@@ -26,7 +25,8 @@ function init () {
title: 'webtorrent-hidden-window',
useContentSize: true,
webPreferences: {
nodeIntegration: true
nodeIntegration: true,
backgroundThrottling: false // do not throttle animations/timers when page is background
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that it was not in inside webPreferences I assume it was in it's default state: true. So I wouldn't change it here 😅

@@ -44,7 +43,8 @@ function init (state, options) {
useContentSize: true, // Specify web page size without OS chrome
width: initialBounds.width,
webPreferences: {
nodeIntegration: true
nodeIntegration: true,
backgroundThrottling: false // do not throttle animations/timers when page is background
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that it was not in inside webPreferences I assume it was in it's default state: true. So I wouldn't change it here 😅

src/renderer/pages/player-page.js Show resolved Hide resolved
@hicom150
Copy link
Contributor

hicom150 commented Oct 8, 2019

Great work @mathiasvr 👍
I point just a pair of things to check 😉

@mathiasvr
Copy link
Contributor Author

@hicom150 Thanks for the review, I have updated the PR to remove the backgroundThrottling: false setting.

Copy link
Contributor

@hicom150 hicom150 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍

@hicom150 hicom150 merged commit 11d04d5 into master Oct 18, 2019
@hicom150 hicom150 deleted the type-issues branch October 18, 2019 09:26
@feross
Copy link
Member

feross commented Nov 4, 2020

I actually think we want backgroundThrottling: false so our timers and intervals aren't throttled when the app is backgrounded. PR here: #1886

feross added a commit that referenced this pull request Nov 4, 2020
Reference: #1720 (comment)

I actually think we want backgroundThrottling: false so our timers and intervals aren't throttled when the app is backgrounded.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants