Skip to content

Commit 7261450

Browse files
committed
new version number
1 parent f285fd1 commit 7261450

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ frontend/node_modules
88
.env
99
/frontend/vite.config.js
1010
release
11-
dist
11+
dist
12+
frontend/.env

frontend/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ <h2 data-i18n="boardingFlight">Boarding Flight...</h2>
655655
<footer class="site-footer">
656656
<div class="footer-content">
657657
<div class="footer-copyright" data-i18n="copyright">
658-
© 2025 DropSilk. A peer-to-peer passion project. v2.4
658+
© 2025 DropSilk. A peer-to-peer passion project. v2.7.0
659659
</div>
660660
<nav class="footer-nav">
661661
<button id="settingsBtn" class="footer-nav-link" data-i18n="settings">Settings</button>

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dropsilk",
3-
"version": "2.4.0",
3+
"version": "2.7.0",
44
"author": "Ahmed medy17 <> (ahmed@dropsilk.xyz) (https://github.com/medy17)",
55
"description": "A modern, privacy-focused, peer-to-peer file transfer application built with WebRTC",
66
"main": "electron/main.js",

frontend/src/js/ui/modals.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ function generateQRCode() {
110110
return;
111111
}
112112

113-
const url = `${location.origin}/?code=${currentFlightCode}`;
113+
const origin = window.electronAPI ? 'https://dropsilk.xyz' : location.origin;
114+
const url = `${origin}/?code=${currentFlightCode}`;
114115
const qrDotColor = getComputedStyle(document.documentElement).getPropertyValue('--c-primary').trim();
115116
const qrColors = { dark: qrDotColor, light: '#00000000' };
116117

@@ -380,7 +381,8 @@ function setupInviteModal() {
380381
if (navigator.vibrate) {
381382
navigator.vibrate([50, 40, 15]);
382383
}
383-
copyToClipboard(`https://dropsilk.xyz/?code=${store.getState().currentFlightCode}`, e.currentTarget, i18next.t('linkCopied'));
384+
const origin = window.electronAPI ? 'https://dropsilk.xyz' : location.origin;
385+
copyToClipboard(`${origin}/?code=${store.getState().currentFlightCode}`, e.currentTarget, i18next.t('linkCopied'));
384386
});
385387

386388
document.getElementById('copyCodeBtn')?.addEventListener('click', (e) => {
@@ -392,7 +394,8 @@ function setupInviteModal() {
392394

393395
shareNativeBtn?.addEventListener('click', async () => {
394396
const { currentFlightCode } = store.getState();
395-
if (navigator.share) await navigator.share({ title: i18next.t('joinMyFlight'), text: i18next.t('joinMyFlightDescription', { code: currentFlightCode }), url: `${location.origin}/?code=${currentFlightCode}` });
397+
const origin = window.electronAPI ? 'https://dropsilk.xyz' : location.origin;
398+
if (navigator.share) await navigator.share({ title: i18next.t('joinMyFlight'), text: i18next.t('joinMyFlightDescription', { code: currentFlightCode }), url: `${origin}/?code=${currentFlightCode}` });
396399
});
397400
}
398401

0 commit comments

Comments
 (0)