Skip to content

Commit e64fac0

Browse files
committed
📝 Edit bsz.ts
1 parent dc4716d commit e64fac0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dist/busuanzi.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
let url: string = "http://127.0.0.1:8080/api",
44
tags: string[] = ["site_pv", "site_uv", "page_pv", "page_uv"],
55
current: HTMLOrSVGScriptElement = document.currentScript,
6-
pjax: boolean = current.hasAttribute("pjax"),
7-
api: string = current.getAttribute("data-api") || url,
8-
prefix: string = current.getAttribute("data-prefix") || "busuanzi",
9-
storageName: string = "bsz-id";
6+
pjax: boolean = current.hasAttribute("pjax"), // 是否启用 pjax
7+
api: string = current.getAttribute("data-api") || url, // 自定义后端地址
8+
prefix: string = current.getAttribute("data-prefix") || "busuanzi", // 自定义标签ID前缀
9+
storageName: string = "bsz-id"; // 本地存储名称
1010

1111
let bsz_send: Function = function () {
1212
let xhr: XMLHttpRequest = new XMLHttpRequest();

0 commit comments

Comments
 (0)