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

grabbing css content for electron apps rather than references #496

Merged
merged 2 commits into from
Nov 3, 2023

Conversation

ender336
Copy link
Contributor

@ender336 ender336 commented Nov 2, 2023

No description provided.

case "LINK":
// electron stylesheets reference the local file system - translating those
// to inline styles so playback can work
if (electron && attributes['rel'] === 'stylesheet') {
Copy link
Member

@sarveshnagpal sarveshnagpal Nov 3, 2023

Choose a reason for hiding this comment

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

stylesheet

Consider moving this to Constant in d.ts file and then use it here like some of the other constants in this file. #Resolved

}
break;
}
// intentionally not breaking here so we can fall through to default behavior when not dealing with electron
Copy link
Member

@sarveshnagpal sarveshnagpal Nov 3, 2023

Choose a reason for hiding this comment

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

// intentionally not breaking h

I think it's probably better to include two lines:
let linkData =
domcall;

and then call break so that in future if someone injects anything between LINK and default; they don't accidentally create bugs. #Resolved

Copy link
Member

@sarveshnagpal sarveshnagpal left a comment

Choose a reason for hiding this comment

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

:shipit:

@ender336 ender336 merged commit 1573ee1 into master Nov 3, 2023
1 check passed
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.

2 participants