mirror of
https://github.com/gnh1201/welsonjs.git
synced 2026-01-19 15:56:53 +00:00
Add the flexible scheme #368 (Catswords.Phantomizer)
Add the flexible scheme #368 (Catswords.Phantomizer)
This commit is contained in:
parent
b5271c529c
commit
ab2df37bef
|
|
@ -71,6 +71,7 @@ private static void InitializeAssemblyLoader()
|
|||
//loaderType.GetProperty("IntegrityUrl")?.SetValue(null, GetAppConfig("IntegrityUrl")); // (Optional) Set the integrity URL
|
||||
loaderType.GetProperty("LoaderNamespace")?.SetValue(null, typeof(Program).Namespace);
|
||||
loaderType.GetProperty("AppName")?.SetValue(null, "WelsonJS"); // Application name
|
||||
//loaderType.GetMethod("AddAllowedUriScheme")?.Invoke(null, Uri.UriSchemeHttp); // (Optional) Allow insecure HTTP (not recommended)
|
||||
loaderType.GetMethod("Register")?.Invoke(null, null);
|
||||
|
||||
var loadNativeModulesMethod = loaderType.GetMethod(
|
||||
|
|
@ -104,6 +105,7 @@ static void Main(string[] args)
|
|||
//AssemblyLoader.IntegrityUrl = GetAppConfig("AssemblyIntegrityUrl"); // (Optional) Set the integrity URL
|
||||
AssemblyLoader.LoaderNamespace = typeof(Program).Namespace;
|
||||
AssemblyLoader.AppName = "WelsonJS";
|
||||
//AssemblyLoader.AddAllowedUriScheme(Uri.UriSchemeHttp); // (Optional) Allow insecure HTTP (not recommended)
|
||||
AssemblyLoader.Register();
|
||||
|
||||
AssemblyLoader.LoadNativeModules(
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user