KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12
System : Windows NT SERVER-PC 10.0 build 26200 (Windows 11) AMD64
User : ServerPC ( 0)
PHP Version : 8.2.12
Disable Function : NONE
Directory :  C:/Program Files/WindowsApps/Microsoft.Wallet_2.4.18324.0_x64__8wekyb3d8bbwe/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : C:/Program Files/WindowsApps/Microsoft.Wallet_2.4.18324.0_x64__8wekyb3d8bbwe/js/startup.js
/**
 * @copyright (c) Microsoft Corporation. All rights reserved.
 */
'use strict';

const componentName = "Microsoft.Pay.startup.js";
const walletHost = "wallet.microsoft.com";
const walletPath = '/preview/';
const osVersionParam = 'os';
const appVersionParam = 'app';
const launchArguments = 'launchArgs';

function processException(message, error) {
    error = error || {};
    const safeError = {
        name: error.name || null,
        message: error.message || null,
        stack: error.stack || null,
        number: error.number || null
    };
    
    const errorMessage = `${message}, Exception: ${JSON.stringify(safeError)}`;
    Microsoft.Pay.Background.Telemetry.TelemetryEvent.unhandledException(componentName, errorMessage, safeError.number);
}

try {
    Microsoft.Pay.Background.Telemetry.TelemetryEvent.applicationLaunched(componentName);

    // Extract transaction ID from the app launch args.
    Windows.UI.WebUI.WebUIApplication.onactivated = function (eventArgs) {
        try {
            const appPackage = Windows.ApplicationModel.Package.current;
            const packageVersionInfo = appPackage.id.version;
            const appVersion = `${packageVersionInfo.major}.${packageVersionInfo.minor}.${packageVersionInfo.revision}`;
            const osVersion = Microsoft.Pay.Background.Telemetry.TelemetryDataProvider.currentOSVersion;

            const url = (eventArgs.kind === Windows.ApplicationModel.Activation.ActivationKind.protocol) ?
                new URL(eventArgs.uri.absoluteUri) : new URL(`https://${walletHost}${walletPath}`);
            url.searchParams.set(osVersionParam, osVersion);
            url.searchParams.set(appVersionParam, appVersion);

            if (eventArgs.kind === Windows.ApplicationModel.Activation.ActivationKind.launch) {
                url.searchParams.set(launchArguments, eventArgs.arguments);
            }

            Microsoft.Pay.Background.Telemetry.TelemetryEvent.applicationActivated(componentName, eventArgs.kind, eventArgs.arguments, url.host);
            window.location.href = url.href;
        }
        catch (e) {
            processException('An activation error occurred.', e);
        }
    };
}
catch (e) {
    processException('An error occurred while processing the startup.js file.', e);
}

Anon7 - 2021