优化移动端阅读体验、优化瞬间样式、修复导航target属性渲染错误
This commit is contained in:
@@ -76,6 +76,13 @@ const { pageTitle, contentClass, wide, home } = Astro.props;
|
||||
<slot name="head" />
|
||||
</head>
|
||||
<body class="wi-body">
|
||||
<script is:inline>
|
||||
window.addEventListener("unhandledrejection", function (e) {
|
||||
if (e.reason && e.reason.message && e.reason.message.indexOf("Could not establish connection") !== -1) {
|
||||
e.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<script is:inline>
|
||||
(function(){
|
||||
try{
|
||||
|
||||
Reference in New Issue
Block a user