Skip to content

Commit

Permalink
Merge branch 'main' of github.com:soxft/busuanzi
Browse files Browse the repository at this point in the history
  • Loading branch information
soxft committed May 10, 2022
2 parents 4ce0ab5 + 4117734 commit 97207a1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion dist/busuanzi.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ var bsz_fetch = function () {
var url = "http://127.0.0.1:8080/api?rand=" + Math.random().toFixed(6);
var xhr = new XMLHttpRequest();
xhr.open("GET", url, true);
// post
var referer = window.location.href;
xhr.setRequestHeader("x-bsz-referer", referer);
xhr.onreadystatechange = function () {
Expand Down
2 changes: 1 addition & 1 deletion dist/busuanzi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const bsz_fetch = () => {

let xhr: XMLHttpRequest = new XMLHttpRequest();
xhr.open("GET", url, true);
// post

let referer: string = window.location.href;
xhr.setRequestHeader("x-bsz-referer", referer);
xhr.onreadystatechange = function () {
Expand Down

0 comments on commit 97207a1

Please sign in to comment.