Fix minor glitch from /app/ url on frontend.
This commit is contained in:
@@ -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.');
|
||||
}
|
||||
};
|
||||
@@ -121,6 +121,9 @@ export class ElectronService {
|
||||
}
|
||||
});
|
||||
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) {
|
||||
let url = data.split('#');
|
||||
switch (url[0]) {
|
||||
|
||||
Reference in New Issue
Block a user