Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

Commit

Permalink
use String() instead
Browse files Browse the repository at this point in the history
 🐿 v2.6.0
  • Loading branch information
bjfletcher committed Jan 11, 2018
1 parent daa94ec commit 86240fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion browser/bundles/o-errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ oErrors.init({
},
filterError: function (reportedObject) {
// Supress errors if they contain an "Undefined not a.... evaluating window.FT.flags | .nUi | .ftNextUi type error"
const e = Object.prototype.toString.call(reportedObject.error);
const e = String(reportedObject.error);
const windowFtError = !!e.match(/^(?=.*\bundefined\b)(?=.*(\bwindow.FT.flags\b|\bwindow.FT.nUi\b|\bwindow.FT.ftNextUi\b)).*$/gi);
return !(window.FT.disableOErrors || windowFtError);
},
Expand Down

0 comments on commit 86240fc

Please sign in to comment.