-
Notifications
You must be signed in to change notification settings - Fork 705
Port Main Window to React #4853
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
base: master
Are you sure you want to change the base?
Conversation
BundleMonFiles updated (2)
Unchanged files (2)
Total files change -15.21KB -0.12% Final result: ✅ View report in BundleMon website ➡️ |
/AzurePipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
@@ -358,7 +361,7 @@ class GLVolmetersController { | |||
this.gl.clearColor(bg.r / 255, bg.g / 255, bg.b / 255, 1); | |||
this.gl.clear(this.gl.COLOR_BUFFER_BIT); | |||
|
|||
if (this.canvasWidth < 0 || this.canvasHeight < 0) return; | |||
if (this.canvasWidth < 0 || this.canvasHeight < 0 || !this.sourcesOrder) return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: add braces, control flow can be easy to miss
@@ -85,14 +89,19 @@ export default function PlatformAppStore(p: { params: { appId?: string; type?: s | |||
return ( | |||
<> | |||
<BrowserView | |||
className={styles.browserView} | |||
className={cx(styles.browserView, p.className)} | |||
style={{ | |||
height: `calc(100% - ${ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could we extract this interpolation to a var? seems like we're evaluating a lot
)} | ||
</div> | ||
{(!ctrl.platform || | ||
(isPlatform(['youtube', 'facebook', 'twitter', 'tiktok', 'kick']) && !isStreaming)) && ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not really a comment, but a note to self, lots of isPlatform
evaluations over here, most of the time with the same arguments, that should probably be extracted in the future. It will make it easier to support newer platforms as well instead of having to track all these instances
No description provided.