Compare commits

..

1 Commits

Author SHA1 Message Date
Ajay Bura
03c285b461 image not loading on mobile after lock/unlock 2026-02-15 13:27:57 +05:30
6 changed files with 21 additions and 7 deletions

View File

@@ -16,7 +16,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v4.4.0
with:
node-version: 24.13.1
node-version: 20.12.2
cache: 'npm'
- name: Install dependencies
run: npm ci

View File

@@ -15,7 +15,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v4.4.0
with:
node-version: 24.13.1
node-version: 20.12.2
cache: 'npm'
- name: Install dependencies
run: npm ci

View File

@@ -14,7 +14,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v4.4.0
with:
node-version: 24.13.1
node-version: 20.12.2
cache: 'npm'
- name: Install dependencies
run: npm ci

View File

@@ -1,5 +1,5 @@
## Builder
FROM node:24.13.1-alpine AS builder
FROM node:20.12.2-alpine3.18 as builder
WORKDIR /src
@@ -11,7 +11,7 @@ RUN npm run build
## App
FROM nginx:1.29.5-alpine
FROM nginx:1.29.3-alpine
COPY --from=builder /src/dist /app
COPY --from=builder /src/docker-nginx.conf /etc/nginx/conf.d/default.conf

View File

@@ -83,7 +83,7 @@ mxFo+ioe/ABCufSmyqFye0psX3Sp
## Local development
> [!TIP]
> We recommend using a version manager as versions change very quickly. You will likely need to switch between multiple Node.js versions based on the needs of different projects you're working on. [NVM on windows](https://github.com/coreybutler/nvm-windows#installation--upgrades) on Windows and [nvm](https://github.com/nvm-sh/nvm) on Linux/macOS are pretty good choices. Recommended nodejs version is Krypton LTS (v24.13.1).
> We recommend using a version manager as versions change very quickly. You will likely need to switch between multiple Node.js versions based on the needs of different projects you're working on. [NVM on windows](https://github.com/coreybutler/nvm-windows#installation--upgrades) on Windows and [nvm](https://github.com/nvm-sh/nvm) on Linux/macOS are pretty good choices. Recommended nodejs version is Iron LTS (v20).
Execute the following commands to start a development server:
```sh

View File

@@ -27,10 +27,24 @@ if ('serviceWorker' in navigator) {
? `${trimTrailingSlash(import.meta.env.BASE_URL)}/sw.js`
: `/dev-sw.js?dev-sw`;
navigator.serviceWorker.register(swUrl).then(() => {
const sendSessionToSW = () => {
const session = getFallbackSession();
pushSessionToSW(session?.baseUrl, session?.accessToken);
};
navigator.serviceWorker.register(swUrl).then(sendSessionToSW);
navigator.serviceWorker.ready.then(sendSessionToSW);
window.addEventListener('load', sendSessionToSW);
// When returning from background
document.addEventListener('visibilitychange', () => {
if (document.visibilityState === 'visible') {
sendSessionToSW();
}
});
// When restored from bfcache (important on iOS)
window.addEventListener('pageshow', sendSessionToSW);
}
const mountApp = () => {