mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-13 23:16:47 +00:00
日志
This commit is contained in:
@@ -82,7 +82,7 @@ const SEO = props => {
|
||||
).then(url => {
|
||||
const WebFont = window?.WebFont
|
||||
if (WebFont) {
|
||||
console.log('LoadWebFont', webFontUrl)
|
||||
// console.log('LoadWebFont', webFontUrl)
|
||||
WebFont.load({
|
||||
custom: {
|
||||
// families: ['"LXGW WenKai"'],
|
||||
|
||||
@@ -169,11 +169,11 @@ export function loadExternalResource(url, type = 'js') {
|
||||
}
|
||||
if (tag) {
|
||||
tag.onload = () => {
|
||||
console.log('Load Success', url)
|
||||
// console.log('Load Success', url)
|
||||
resolve(url)
|
||||
}
|
||||
tag.onerror = () => {
|
||||
console.log('Load Error', url)
|
||||
console.warn('Load Error', url)
|
||||
reject(url)
|
||||
}
|
||||
document.head.appendChild(tag)
|
||||
|
||||
Reference in New Issue
Block a user