mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 06:56:04 +02:00
+12
-2
@@ -188,6 +188,14 @@ if (window.CefSharp) {
|
|||||||
|
|
||||||
ELEMENT.locale(ELEMENT.lang.en);
|
ELEMENT.locale(ELEMENT.lang.en);
|
||||||
|
|
||||||
|
var uuidv4 = () => 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/gu, (c) => {
|
||||||
|
var v = Math.random() * 16 | 0;
|
||||||
|
if (c !== 'x') {
|
||||||
|
v |= 8;
|
||||||
|
}
|
||||||
|
return v.toString(16);
|
||||||
|
});
|
||||||
|
|
||||||
//
|
//
|
||||||
// API
|
// API
|
||||||
//
|
//
|
||||||
@@ -3463,7 +3471,7 @@ if (window.CefSharp) {
|
|||||||
VRCX,
|
VRCX,
|
||||||
nextRefresh: 0,
|
nextRefresh: 0,
|
||||||
isGameRunning: false,
|
isGameRunning: false,
|
||||||
appVersion: '2019.09.23',
|
appVersion: '2019.09.24',
|
||||||
latestAppVersion: '',
|
latestAppVersion: '',
|
||||||
ossDialog: false
|
ossDialog: false
|
||||||
},
|
},
|
||||||
@@ -6758,12 +6766,14 @@ if (window.CefSharp) {
|
|||||||
tags.push(`~private(${API.currentUser.id})`);
|
tags.push(`~private(${API.currentUser.id})`);
|
||||||
}
|
}
|
||||||
// NOTE : crypto.getRandomValues()를 쓰면 안전한 대신 무겁겠지..
|
// NOTE : crypto.getRandomValues()를 쓰면 안전한 대신 무겁겠지..
|
||||||
|
/*
|
||||||
var nonce = [];
|
var nonce = [];
|
||||||
for (var i = 0; i < 10; ++i) {
|
for (var i = 0; i < 10; ++i) {
|
||||||
nonce.push(Math.random().toString(16).substr(2).toUpperCase());
|
nonce.push(Math.random().toString(16).substr(2).toUpperCase());
|
||||||
}
|
}
|
||||||
nonce = nonce.join('').substr(0, 64);
|
nonce = nonce.join('').substr(0, 64);
|
||||||
tags.push(`~nonce(${nonce})`);
|
*/
|
||||||
|
tags.push(`~nonce(${uuidv4()})`);
|
||||||
if (D.accessType === 'invite+') {
|
if (D.accessType === 'invite+') {
|
||||||
tags.push('~canRequestInvite');
|
tags.push('~canRequestInvite');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user