Skip to content

Commit

Permalink
Merge branch 'develop' into alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrodek committed Feb 9, 2021
2 parents 04d7761 + 9f42a50 commit f6095dc
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 21 deletions.
44 changes: 27 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"@advanced-rest-client/arc-menu": "^4.0.3",
"@advanced-rest-client/arc-messages": "^0.1.0",
"@advanced-rest-client/arc-models": "^4.2.9",
"@advanced-rest-client/arc-request-ui": "^0.1.10",
"@advanced-rest-client/arc-request-ui": "^0.1.11",
"@advanced-rest-client/arc-settings": "^0.1.2",
"@advanced-rest-client/bottom-sheet": "^3.2.2",
"@advanced-rest-client/client-certificates": "^0.1.0",
Expand Down
3 changes: 2 additions & 1 deletion src/app/scripts/apic/ApiConsole.js
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ export class ApiConsoleApplication extends AmfHelperMixin(ApplicationPage) {
headerTemplate() {
return html`
<header>
<anypoint-icon-button title="Back to the request workspace" @click="${this[mainBackHandler]}">
<anypoint-icon-button title="Back to the request workspace" @click="${this[mainBackHandler]}" class="header-action-button">
<arc-icon icon="arrowBack"></arc-icon>
</anypoint-icon-button>
API Console by MuleSoft.
Expand Down Expand Up @@ -644,6 +644,7 @@ export class ApiConsoleApplication extends AmfHelperMixin(ApplicationPage) {
verticalAlign="top"
horizontalAlign="auto"
closeOnActivate
class="header-action-button"
>
<anypoint-icon-button slot="dropdown-trigger" ?compatibility="${this.compatibility}">
<arc-icon icon="moreVert"></arc-icon>
Expand Down
3 changes: 2 additions & 1 deletion src/app/scripts/arc/AdvancedRestClientApplication.js
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,8 @@ export class AdvancedRestClientApplication extends ApplicationPage {
* @param {ARCConfig} cnf
*/
setConfigVariables(cnf) {
if (!!cnf.request || (cnf.request && typeof cnf.request.ignoreSessionCookies === 'boolean' && cnf.request.ignoreSessionCookies)) {
const ignoreCookies = !!cnf.request && cnf.request.ignoreSessionCookies === false;
if (!ignoreCookies) {
ModulesRegistry.register(ModulesRegistry.request, 'arc/request/cookies', RequestCookies.processRequestCookies, ['events']);
ModulesRegistry.register(ModulesRegistry.response, 'arc/response/cookies', RequestCookies.processResponseCookies, ['events']);
}
Expand Down
4 changes: 4 additions & 0 deletions src/io/ArcEnvironment.js
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,10 @@ export class ArcEnvironment {
ignoreWindowSessionSettings: true,
noMenu: true,
parent: win,
sizing: {
height: 800,
width: 800,
},
});
break;
case 'open-privacy-policy':
Expand Down
4 changes: 4 additions & 0 deletions src/io/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ export default async function start(startTime) {
app.commandLine.appendSwitch('enable-experimental-web-platform-features');
app.commandLine.appendSwitch('disable-features', 'OutOfBlinkCors');

// Sets the application version in a global variable so the renderer process
// has this information without querying for it.
process.env.ARC_VERSION = app.getVersion();

process.on('uncaughtException', (error) => {
if (error.message) {
logger.error(error.message);
Expand Down
2 changes: 1 addition & 1 deletion src/preload/arc-preload.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { GoogleDriveProxy } from './GoogleDriveProxy.js';
import { GoogleAnalytics } from './GoogleAnalytics.js';

const env = {};
const APP_VERSION = process.env.npm_package_version;
const APP_VERSION = process.env.ARC_VERSION;
Object.keys(process.env).forEach((key) => {
if (key.indexOf('npm_') === 0 || key.indexOf('ARC_') === 0) {
return;
Expand Down

0 comments on commit f6095dc

Please sign in to comment.