|
@@ -3,9 +3,9 @@
|
|
|
try {
|
|
|
Sentry.init({
|
|
|
dsn: "https://ea0521e5b3584ca1879b940c165916e4@jysentry.jydev.jianyu360.cn/3",
|
|
|
- release: "v8.8.48.3",
|
|
|
+ release: "v8.9.45.4",
|
|
|
environment: "produce",
|
|
|
- sampleRate: 0.01
|
|
|
+ sampleRate: 0.02
|
|
|
});
|
|
|
Sentry.setTag("url", location.href);
|
|
|
var id = document.cookie.match(/(^|;)\s*ud_safe\s*=\s*([^;]+)/);
|
|
@@ -187,6 +187,13 @@
|
|
|
margin: 6px;
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
+ .cdn-tip--dialog .close-tip--dialog {
|
|
|
+ position: absolute;
|
|
|
+ cursor: pointer;
|
|
|
+ right: 0;
|
|
|
+ top: 0;
|
|
|
+ padding: 8px;
|
|
|
+ }
|
|
|
</style>
|
|
|
`
|
|
|
document.head.appendChild(cdnStyle)
|
|
@@ -194,6 +201,7 @@
|
|
|
const cdnNode = document.createElement('div')
|
|
|
cdnNode.innerHTML = `
|
|
|
<div class="cdn-tip--dialog show ${confirm ? '' : 'action-tip'}" id="cdn-tip">
|
|
|
+ <div class="close-tip--dialog" onclick="document.querySelector('#cdn-tip').remove();">关闭</div>
|
|
|
<p>
|
|
|
${content}
|
|
|
</p>
|