Skip to content

Commit

Permalink
fix(desktop): incorrect origin in development build (#1883)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyrious authored Mar 27, 2023
1 parent 664a419 commit 60bd477
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion desktop/renderer-app/src/utils/portal-window-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class PortalWindowManager {
* production env: file:///Applications/Flat.app/Contents/Resources/static/render/
*/
private static originPath(): string {
if (process.env.NODE_ENV === "development") {
if (window.location.protocol !== "file:") {
return `${window.location.origin}/`;
}

Expand Down

0 comments on commit 60bd477

Please sign in to comment.