Skip to content

Commit

Permalink
fix: block Sentry Replay for table class (#2347)
Browse files Browse the repository at this point in the history
  • Loading branch information
HipsterBrown authored Dec 20, 2023
1 parent c378bbc commit 5266afc
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions assets/js/sentry.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var loadJS = function(url, implementationCode, location){
var loadJS = function(url, implementationCode, location) {
var scriptTag = document.createElement('script');
scriptTag.src = url;

Expand All @@ -7,15 +7,16 @@ var loadJS = function(url, implementationCode, location){

location.appendChild(scriptTag);
};
var startSentry = function(){
var startSentry = function() {
Sentry.onLoad(function() {
Sentry.init({
integrations: [
new Sentry.Replay({
maskAllText: false,
blockAllMedia: false,
}),
],
integrations: [
new Sentry.Replay({
block: ['.table'],
maskAllText: false,
blockAllMedia: false,
}),
],
});
});
}
Expand Down

0 comments on commit 5266afc

Please sign in to comment.