Skip to content

Commit 9d02242

Browse files
author
ziye12
authored
Update qqreads.js
1 parent 1267633 commit 9d02242

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

Task/qqreads.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -152,15 +152,8 @@ if ($.isNode()) {
152152

153153

154154

155-
let isGetCookie = typeof $request !== 'undefined'
156-
if (isGetCookie) {
157-
GetCookie()
158-
} else {
159-
let num = 0;
160-
all()
161-
}
162-
163155

156+
GetCookie()
164157

165158
function GetCookie() {
166159
if($request &&$request.url.indexOf("init")>=0) {
@@ -185,7 +178,8 @@ const qqreadtimeheaderVal = JSON.stringify($request.headers)
185178
}
186179

187180

188-
181+
let num = 0;
182+
all()
189183
function all(){
190184
qqreadheaderVal = qqreadhdArr[num];
191185
qqreadtimeurlVal = qqreadtimeurlArr[num];

0 commit comments

Comments
 (0)