-
Notifications
You must be signed in to change notification settings - Fork 63
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
feat: chrome extension build #1386
Conversation
Closes: #1383
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.
No code change here, just moved to its own file.
packages/js/src/browser.ts
Outdated
|
||
private getUserFeedbackSubmitUrl() { | ||
return getUserFeedbackScriptUrl(this.getVersion()) | ||
const form = new BrowserFeedbackForm(this.config, this.logger, this.getVersion()); |
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.
I moved feedback form code to its own file to reduce chances of breaking the code removal by rearranging methods.
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.
This refactor broke the integration tests. I am working on fixing them.
Status
READY
Description
Creates a new chrome extension build that excludes the "Collect User Feedback Form" feature that would cause chrome extensions to be rejected.
The excluded code is isolated in a file
feedback-form.ts
and the removal is done usingrollup-plugin-strip-code
.The additional build file is
honeybadger.ext.min.js
and is also uploaded on CDN.Closes: #1383
Todos
honeybadger.ext.min.js