Fix minor glitch from /app/ url on frontend.

This commit is contained in:
Nathanael Anderson
2024-05-02 11:09:22 -06:00
parent d794997ced
commit 1bcd2cdc1d
2 changed files with 3 additions and 23 deletions
-23
View File
@@ -1,23 +0,0 @@
const { notarize } = require('@electron/notarize');
exports.default = async function notarizing(context) {
const { electronPlatformName, appOutDir } = context;
if (electronPlatformName !== 'darwin') {
return;
}
const appName = context.packager.appInfo.productFilename;
if (process.env.APPLE_ID && process.env.APPLE_ID_PASS) {
return await notarize({
appBundleId: 'com.sidequestvr.app',
appPath: `${appOutDir}/${appName}.app`,
appleId: process.env.APPLE_ID,
appleIdPassword: process.env.APPLE_ID_PASS,
teamId: process.env.APPLE_ID_TEAM,
ascProvider: process.env.APPLE_ID_TEAM
});
} else {
console.warn('NOTICE: Did not notarize application due to missing environment variables.');
}
};
+3
View File
@@ -121,6 +121,9 @@ export class ElectronService {
} }
}); });
this.appService.electron.ipcRenderer.on('open-url', async (event, data) => { this.appService.electron.ipcRenderer.on('open-url', async (event, data) => {
if (data.indexOf("sidequest://app/") === 0 && data.indexOf("#") === -1) {
data = data.substring(0,16) + "#" + data.substring(16);
}
if (data) { if (data) {
let url = data.split('#'); let url = data.split('#');
switch (url[0]) { switch (url[0]) {