43 lines
1.8 KiB
TypeScript
43 lines
1.8 KiB
TypeScript
// Module ID: 17336
|
|
// Function ID: 17337
|
|
// Name: updateSocialRpcNetworkConfig
|
|
// Dependencies: [17, 1997, 1218, 698, 530, 5451, 500, 2]
|
|
|
|
// Module 17336 (updateSocialRpcNetworkConfig)
|
|
import set from "set" /* 2 */;
|
|
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
|
|
import set2 from "set" /* 500 */;
|
|
import sendRequest from "sendRequest" /* 530 */;
|
|
import expandEventPropertiesDefault from "expandEventProperties" /* 698 */;
|
|
import initializeDefault from "initialize" /* 5451 */;
|
|
import closure_4 from "_getSystemLocale" /* 1997 */;
|
|
import closure_5 from "fetchFingerprint" /* 1218 */;
|
|
|
|
function updateSocialRpcNetworkConfig() {
|
|
let obj = { "X-Super-Properties": expandEventPropertiesDefault.getSuperPropertiesBase64(), "X-Fingerprint": store.getFingerprint(), "X-Installation-ID": store.getInstallationForTracking(), "X-Discord-Locale": locale.locale };
|
|
const NativeCacheModule = NativeModules.NativeCacheModule;
|
|
if (NativeCacheModule != null) {
|
|
const _JSON = JSON;
|
|
obj = { apiBaseUrl: null, headers: null };
|
|
obj[0] = sendRequest.getAPIBaseURL();
|
|
obj[1] = obj;
|
|
const result = NativeCacheModule.setItem("socialRpcNetworkRequest", JSON.stringify(obj));
|
|
const obj4 = sendRequest;
|
|
}
|
|
}
|
|
const NativeModules = get_ActivityIndicator.NativeModules;
|
|
initializeDefault;
|
|
let prototype = function SocialRpcNetworkConfigManager() {
|
|
const applyArgumentsResult = HermesBuiltin.applyArguments(new.target, new.target);
|
|
applyArgumentsResult.handleUpdate = set2.isAndroid() ? updateSocialRpcNetworkConfig : (() => {
|
|
|
|
});
|
|
applyArgumentsResult.actions = { POST_CONNECTION_OPEN: applyArgumentsResult.handleUpdate };
|
|
return applyArgumentsResult;
|
|
}.prototype;
|
|
class prototype extends tmp2 {
|
|
}
|
|
prototype = new prototype();
|
|
let result = set.fileFinishedImporting("modules/rpc/native/SocialRpcNetworkConfigManager.tsx");
|
|
|
|
export default prototype;
|