@telepath-computer/television-desktop 0.1.170 → 0.1.171
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/electron.cjs +3 -2
- package/package.json +1 -1
package/dist/electron.cjs
CHANGED
|
@@ -167,10 +167,11 @@ function parseDesktopConnectURL(input) {
|
|
|
167
167
|
const parsed = parseConnectURL(url.toString());
|
|
168
168
|
return parsed;
|
|
169
169
|
}
|
|
170
|
-
function buildRemoteURL(serverURL, token) {
|
|
170
|
+
function buildRemoteURL(serverURL, token, desktopAppVersion) {
|
|
171
171
|
const url = new URL(serverURL);
|
|
172
172
|
url.searchParams.set("mode", "electron");
|
|
173
173
|
if (token) url.searchParams.set("token", token);
|
|
174
|
+
if (desktopAppVersion) url.searchParams.set("desktopAppVersion", desktopAppVersion);
|
|
174
175
|
return url.toString();
|
|
175
176
|
}
|
|
176
177
|
|
|
@@ -377,7 +378,7 @@ var App = class {
|
|
|
377
378
|
}
|
|
378
379
|
async loadRemote(connection) {
|
|
379
380
|
if (!this.window) return;
|
|
380
|
-
await this.window.loadURL(buildRemoteURL(connection.serverURL, connection.token));
|
|
381
|
+
await this.window.loadURL(buildRemoteURL(connection.serverURL, connection.token, import_electron2.app.getVersion()));
|
|
381
382
|
}
|
|
382
383
|
installWindowOpenHandler() {
|
|
383
384
|
import_electron2.app.on("web-contents-created", (_event, contents) => {
|