Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public static load(dir?: string): typeof IModelJsNative {
return this.isMobile ? this.imodeljsMobile.imodeljsNative : // we are running on a mobile platform
require("@bentley/imodeljs-native/loadNativePlatform.js").loadNativePlatform(dir); // We are running in node or electron.
}
}