Skip to content

Commit

Permalink
Update plugin.ts
Browse files Browse the repository at this point in the history
Signed-off-by: 1000TurquoisePogs <[email protected]>
  • Loading branch information
1000TurquoisePogs authored Aug 28, 2024
1 parent 714fc04 commit 898decf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions base/src/plugin-manager/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,14 +172,14 @@ class Plugin_2 extends Plugin_1 {
}

getWebEntrypoint():string|undefined {
let entryPoints = this.webContent?.entryPoints;
if (entryPoints) {
let entryPoint = this.webContent?.entryPoint;
if (entryPoint) {
const searchParams = new URLSearchParams(window.location.search);
const useV2Desktop = searchParams.has("use-v2-desktop") && (searchParams.get("use-v2-desktop") == '1');
if (useV2Desktop || !entryPoints['3.0']) {
const useV2Desktop = searchParams.has("use-v2-desktop") && (searchParams.get("use-v2-desktop") == 'true');
if (useV2Desktop || !entryPoint['3.0']) {
return 'main.js';
} else {
return ''+entryPoints['3.0'];
return ''+entryPoint['3.0'];
}
} else if (this.webContent) {
return 'main.js';
Expand Down

0 comments on commit 898decf

Please sign in to comment.