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:/Windows/SystemApps/Microsoft.Windows.CloudExperienceHost_cw5n1h2txyewy/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : C:/Windows/SystemApps/Microsoft.Windows.CloudExperienceHost_cw5n1h2txyewy/js/appObjectFactory.js
if ((typeof define === "function") && define.amd) {
    define(function () {
        return AppObjectFactory.getInstance();
    });
}
class AppObjectFactory {
    constructor() {
        this.enableSwap = false;
        this.registered = {};
    }
    static getInstance() {
        if (AppObjectFactory._instance === null) {
            AppObjectFactory._instance = new AppObjectFactory();
        }
        return AppObjectFactory._instance;
    }
    registerModule(module, object) {
        this.registered[module] = object;
    }
    getObjectFromString(className) {
        if (this.enableSwap && (className in this.registered)) {
            return this.registered[className];
        }
        return this.getContextFromString(className);
    }
    getContextFromString(className) {
        let context = window;
        let arr = className.split(".");
        try {
            for (var i = 0, len = arr.length; i < len; i++) {
                context = context[arr[i]];
            }
        }
        catch (error) {
            return null;
        }
        return context;
    }
    ;
}
AppObjectFactory._instance = null;

Anon7 - 2021