-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ON_DEVICE var for controlling display states
- Loading branch information
Showing
6 changed files
with
12 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,10 @@ | ||
// Pinia store actions to call on first boot | ||
import { Platform } from 'quasar' | ||
import { networkSettings } from 'stores/system' | ||
|
||
const systemStore = networkSettings() | ||
|
||
// Get internet status. Error handling is done in the store. | ||
// Not using store for Electron state to avoid race condition | ||
const currentUrl = new URL(window.location.href) | ||
if ( | ||
(!Platform.is.electron && process.env.MODE !== 'pwa') || | ||
(Platform.is.electron && | ||
currentUrl.hostname !== 'localhost' && | ||
currentUrl.protocol !== 'file:') | ||
) { | ||
if (process.env.ON_DEVICE?.toLowerCase() === 'true') { | ||
void systemStore.checkInternetStatus() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters