Browse Source

Update qr-login.html

main
Zkitefly 2 months ago committed by GitHub
parent
commit
d2f39a9327
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      qr-login.html

2
qr-login.html

@ -35,7 +35,7 @@ layout: default
userPrompt.innerHTML = `请复制代码 <span class="selectable" id="userCode">${userCode}</span> <br>并前往 <a href="${verificationUri}">${verificationUri}</a>,输入代码允许访问并登录微软账户。`; userPrompt.innerHTML = `请复制代码 <span class="selectable" id="userCode">${userCode}</span> <br>并前往 <a href="${verificationUri}">${verificationUri}</a>,输入代码允许访问并登录微软账户。`;
qrcodeContainer.appendChild(userPrompt); qrcodeContainer.appendChild(userPrompt);
} else { } else {
const currentUrl = window.location.href + '?login=1'; const currentUrl = window.location.href + '&login=1';
console.log("currentUrl: ", currentUrl); console.log("currentUrl: ", currentUrl);
const canvas = document.createElement('canvas'); const canvas = document.createElement('canvas');
QRCode.toCanvas(canvas, currentUrl, function (error) { QRCode.toCanvas(canvas, currentUrl, function (error) {

Loading…
Cancel
Save