0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Added origin to beta editor feedback (#17664)

no refs
-added origin to beta editor feedback to more easily associate errors
This commit is contained in:
Steve Larson 2023-08-09 15:53:37 -05:00 committed by GitHub
parent 61d53ed7af
commit a2cb55f0b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,14 +36,15 @@ export default class FeedbackLexicalSendButtonComponent extends Component {
StaffAccessLevel: this.session.user.role?.description,
UserAgent: navigator.userAgent,
GhostVersion: this.config.version,
KoenigLexicalVersion: window['@tryghost/koenig-lexical'].version,
KoenigLexicalVersion: window['@tryghost/koenig-lexical']?.version,
Feedback: this.args.feedbackMessage
};
let data = {
...ghostData,
...postData,
Source: source || 'Settings'
Source: source || 'Settings',
Origin: window.location.origin
};
let response = yield this.ajax.post(url, {data});