Skip to content

Commit

Permalink
v3.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
boehlerlukas committed Dec 11, 2020
1 parent 60453bb commit 9c58347
Show file tree
Hide file tree
Showing 12 changed files with 37 additions and 24 deletions.
2 changes: 1 addition & 1 deletion build/index.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/index.css.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions build/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bugbattle",
"version": "3.1.4",
"version": "3.1.5",
"main": "build/index.js",
"types": "index.d.ts",
"scripts": {
Expand Down
6 changes: 6 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ <h2>Bugbattle SDK for the Web</h2>
quality
& ratings with comprehensive in-app bug reporting. BugBattle offers affordable In-App Bug Reporting for Apps,
WebApps & Websites.</span>

<img width="225" height="263" src="https://738698.smushcdn.com/1254973/wp-content/uploads/2020/09/icon_gdpr_compliant.png?size=1024x1024&amp;lossy=1&amp;strip=1&amp;webp=1" class="attachment-large size-large lazyloaded" alt="" sizes="(max-width: 225px) 100vw, 225px" srcset="https://738698.smushcdn.com/1254973/wp-content/uploads/2020/09/icon_gdpr_compliant.png?size=160x187&amp;lossy=1&amp;strip=1&amp;webp=1 160w, https://738698.smushcdn.com/1254973/wp-content/uploads/2020/09/icon_gdpr_compliant.png?lossy=1&amp;strip=1&amp;webp=1 225w" data-ll-status="loaded">
<img width="225" height="263" src="https://738698.smushcdn.com/1254973/wp-content/uploads/2020/09/icon_gdpr_compliant.png?size=1024x1024&amp;lossy=1&amp;strip=1&amp;webp=1" class="attachment-large size-large lazyloaded" alt="" sizes="(max-width: 225px) 100vw, 225px" srcset="https://738698.smushcdn.com/1254973/wp-content/uploads/2020/09/icon_gdpr_compliant.png?size=160x187&amp;lossy=1&amp;strip=1&amp;webp=1 160w, https://738698.smushcdn.com/1254973/wp-content/uploads/2020/09/icon_gdpr_compliant.png?lossy=1&amp;strip=1&amp;webp=1 225w" data-ll-status="loaded">
<img width="225" height="263" src="https://738698.smushcdn.com/1254973/wp-content/uploads/2020/09/icon_gdpr_compliant.png?size=1024x1024&amp;lossy=1&amp;strip=1&amp;webp=1" class="attachment-large size-large lazyloaded" alt="" sizes="(max-width: 225px) 100vw, 225px" srcset="https://738698.smushcdn.com/1254973/wp-content/uploads/2020/09/icon_gdpr_compliant.png?size=160x187&amp;lossy=1&amp;strip=1&amp;webp=1 160w, https://738698.smushcdn.com/1254973/wp-content/uploads/2020/09/icon_gdpr_compliant.png?lossy=1&amp;strip=1&amp;webp=1 225w" data-ll-status="loaded">
<img width="225" height="263" src="https://738698.smushcdn.com/1254973/wp-content/uploads/2020/09/icon_gdpr_compliant.png?size=1024x1024&amp;lossy=1&amp;strip=1&amp;webp=1" class="attachment-large size-large lazyloaded" alt="" sizes="(max-width: 225px) 100vw, 225px" srcset="https://738698.smushcdn.com/1254973/wp-content/uploads/2020/09/icon_gdpr_compliant.png?size=160x187&amp;lossy=1&amp;strip=1&amp;webp=1 160w, https://738698.smushcdn.com/1254973/wp-content/uploads/2020/09/icon_gdpr_compliant.png?lossy=1&amp;strip=1&amp;webp=1 225w" data-ll-status="loaded">

<br /><br />
<span>No more wasting time trying to reproduce a bug. Bugbattle reports automatically contain a replay video,
session data, logs and more. Even better: You can add custom data to your bug details.</span>
Expand Down
2 changes: 1 addition & 1 deletion published/latest/index.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion published/latest/index.css.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions published/latest/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion published/latest/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/demo/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class App {
BugBattle.enablePrivacyPolicy(false);

// Enable the automatic crash detector.
BugBattle.enableCrashDetector(true);
BugBattle.enableCrashDetector(false);

const feedbackButton = document.querySelector("#feedback-button");
if (feedbackButton) {
Expand Down
31 changes: 19 additions & 12 deletions src/lib/BugBattle.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,13 +178,20 @@ class BugBattle {
height: window.innerHeight,
letterRendering: 1,
allowTaint: true,
useCORS: true,
imageTimeout: 15000
useCORS: false,
logging: false,
imageTimeout: 15000,
proxy: "https://jsproxy.bugbattle.io/",
}).then(function (canvas) {
self.instance.screenshot = canvas.toDataURL();
if (self.instance.crashDetected) {
self.instance.askForCrashReport();
if (canvas) {
self.instance.screenshot = canvas.toDataURL();
if (self.instance.crashDetected) {
self.instance.askForCrashReport();
} else {
self.instance.showBugReportEditor();
}
} else {
console.warn("Couldn't create image.");
self.instance.showBugReportEditor();
}
});
Expand Down Expand Up @@ -419,7 +426,7 @@ class BugBattle {
if (this.poweredByHidden) {
poweredByContainer.style.display = "none";
} else {
poweredByContainer.onclick = function() {
poweredByContainer.onclick = function () {
window.open("https://www.bugbattle.io/", "_blank");
};
}
Expand Down Expand Up @@ -525,7 +532,7 @@ class BugBattle {
elem.className = "bugbattle--feedback-button";
elem.innerHTML =
'<div class="bugbattle--feedback-button-inner"><div class="bugbattle--feedback-button-inner-text">Feedback</div></div>';
elem.onclick = function() {
elem.onclick = function () {
BugBattle.startBugReporting();
};
document.body.appendChild(elem);
Expand Down Expand Up @@ -634,7 +641,7 @@ class BugBattle {
const http = new XMLHttpRequest();
http.open("POST", this.apiUrl + "/uploads/sdk");
http.setRequestHeader("Api-Token", this.sdkKey);
http.onreadystatechange = function(e) {
http.onreadystatechange = function (e) {
if (http.readyState === XMLHttpRequest.DONE) {
try {
const response = JSON.parse(http.responseText);
Expand Down Expand Up @@ -665,13 +672,13 @@ class BugBattle {
http.open("POST", this.apiUrl + "/bugs");
http.setRequestHeader("Content-Type", "application/json;charset=UTF-8");
http.setRequestHeader("Api-Token", this.sdkKey);
http.onreadystatechange = function(e) {
http.onreadystatechange = function (e) {
if (
http.readyState === XMLHttpRequest.DONE &&
(http.status === 200 || http.status === 201)
) {
self.showSuccessMessage();
setTimeout(function() {
setTimeout(function () {
self.hide();
}, 1500);
}
Expand All @@ -685,7 +692,7 @@ class BugBattle {
customData: this.customData,
metaData: this.getMetaData(),
consoleLog: this.logArray,
type: this.crashDetected ? 'CRASHREPORT' : 'BUG'
type: this.crashDetected ? "CRASHREPORT" : "BUG",
};
http.send(JSON.stringify(bugReportData));
}
Expand Down Expand Up @@ -797,7 +804,7 @@ class BugBattle {
</div>
`;
document.body.appendChild(bugReportingEditor);

const editorRectangle = document.querySelector(
".bugbattle-screenshot-editor-borderlayer"
);
Expand Down

0 comments on commit 9c58347

Please sign in to comment.