Merge remote-tracking branch 'origin/main' into ICU-1335-close-session-on-cancel

This commit is contained in:
Susmitha Girumala committed 2021-05-11 18:09:50 -04:00
commit dfb9d6e686
178 files changed
+1706 -1374

No files matched your search

+6 -2
View File
@@ -46,7 +46,8 @@ const findUpdateArchive = (version) => {
// Create update config using downloaded archive
const createAppUpdaterConfig = (url, version, destination) => {
if (debug) console.log(`[app-updater] url: ${url}, destination: ${destination}`);
if (debug)
console.log(`[app-updater] url: ${url}, destination: ${destination}`);
const json = { url, version };
const config = JSON.stringify(json);
const configPath = `${destination}/feed.json`;
@@ -144,7 +145,10 @@ module.exports = {
const location = process.env.APP_UPDATER_LATEST_VERSION_LOCATION;
if (debug && location) {
// Support hosted url and file paths
displayDownloadPrompt(latestVersion, location.match(/^http/i) ? location : `file://${location}`);
displayDownloadPrompt(
latestVersion,
location.match(/^http/i) ? location : `file://${location}`
);
return;
}
+2 -2
View File
@@ -34,8 +34,8 @@ handle('resetOrigin', async (requestOrigin) => {
*/
handle('openExternal', async (href) => {
const isSecure = href.startsWith('https://');
const isLocalhost = href.startsWith('http://localhost')
|| href.startsWith('http://127.0.0.1');
const isLocalhost =
href.startsWith('http://localhost') || href.startsWith('http://127.0.0.1');
if (isSecure || isLocalhost || isDev) {
// openExternal is necessary in order to display documentation and to
// support arbitrary OIDC flows. The protocol is validated (see above).