add stat fix
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { useKey } from '@kevisual/use-config';
|
||||
import { config } from '../../config.ts';
|
||||
|
||||
/**
|
||||
@@ -9,7 +10,7 @@ export const addStat = (html: string, addStat = true) => {
|
||||
if (!addStat) {
|
||||
return html;
|
||||
}
|
||||
const { websiteId } = config.stat || {};
|
||||
const websiteId = useKey('DATA_WEBSITE_ID')
|
||||
if (!websiteId) {
|
||||
return html;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user