mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-10 15:57:53 +00:00
feat(dashboard): add polyfill for String.prototype.replaceAll
This commit is contained in:
parent
d17cb80db4
commit
5a6bf84af6
3 changed files with 11 additions and 0 deletions
|
|
@ -1,6 +1,11 @@
|
|||
import * as Sentry from "@sentry/browser";
|
||||
import { Integrations } from "@sentry/tracing";
|
||||
|
||||
// polyfill for replaceAll
|
||||
import * as replaceAll from 'core-js-pure/es/string/virtual/replace-all.js';
|
||||
if (!String.prototype.replaceAll)
|
||||
String.prototype.replaceAll = replaceAll;
|
||||
|
||||
Sentry.init({
|
||||
dsn: "https://58109fec589f4c2bbfa190329acf679a@sentry.pluralkit.me/4",
|
||||
integrations: [new Integrations.BrowserTracing()],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue