Compare commits

..

No commits in common. "d4c365c0c7281f365b9191a3f5dd825663ea0822" and "a428e4d3d73cfe05db4ffc605980e4e3020ec48c" have entirely different histories.

View File

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