Skip to content
This repository has been archived by the owner on Jun 20, 2022. It is now read-only.

Commit

Permalink
Merge branch 'release/3.12.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
moughxyz committed Mar 5, 2022
2 parents 4af23dc + 23b3f99 commit d8b5561
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 33 deletions.
47 changes: 17 additions & 30 deletions app/javascripts/renderer/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,32 +13,29 @@ declare const DASHBOARD_URL: string;

declare global {
interface Window {
ElectronValence: any;
/* eslint-disable camelcase */
_bugsnag_api_key: string;
_enable_unfinished_features: boolean;
_purchase_url: string;
_plans_url: string;
_dashboard_url: string;
bridge: Bridge;
bugsnagApiKey: string;
dashboardUrl: string;
desktopManager: ElectronDesktopCallbacks;
electronAppVersion: string;
zip: any;
ElectronValence: any;
enableUnfinishedFeatures: boolean;
plansUrl: string;
purchaseUrl: string;
startApplication: StartApplication;
bridge: Bridge;
zip: any;
}
}

const messageBus = new window.ElectronValence.FrameMessageBus();
const receiver = new window.ElectronValence.Receiver(messageBus);

/** Accessed by web app */
/* eslint-disable camelcase */
window._bugsnag_api_key = BUGSNAG_API_KEY;
window._enable_unfinished_features = ENABLE_UNFINISHED_FEATURES === 'true';
window._purchase_url = PURCHASE_URL;
window._plans_url = PLANS_URL;
window._dashboard_url = DASHBOARD_URL;
/* eslint-enable camelcase */
window.bugsnagApiKey = BUGSNAG_API_KEY;
window.dashboardUrl = DASHBOARD_URL;
window.enableUnfinishedFeatures = ENABLE_UNFINISHED_FEATURES === 'true';
window.plansUrl = PLANS_URL;
window.purchaseUrl = PURCHASE_URL;

(async () => {
await receiver.ready;
Expand All @@ -48,11 +45,10 @@ window._dashboard_url = DASHBOARD_URL;

window.bridge = await createWebBridge(mainThread);
window.startApplication(
// eslint-disable-next-line no-undef
DEFAULT_SYNC_SERVER,
DEFAULT_FILES_SERVER,
window.bridge,
window._enable_unfinished_features,
window.enableUnfinishedFeatures,
WEBSOCKET_URL
);

Expand Down Expand Up @@ -205,18 +201,12 @@ async function configureWindow(mainThread: any) {
// For Mac inset window
const sheet = window.document.styleSheets[0];
if (isMacOS) {
sheet.insertRule(
'#navigation { padding-top: 25px !important; }',
sheet.cssRules.length
);
sheet.insertRule('#navigation { padding-top: 25px !important; }', sheet.cssRules.length);
}

if (isMacOS || useSystemMenuBar) {
// !important is important here because #desktop-title-bar has display: flex.
sheet.insertRule(
'#desktop-title-bar { display: none !important; }',
sheet.cssRules.length
);
sheet.insertRule('#desktop-title-bar { display: none !important; }', sheet.cssRules.length);
} else {
/* Use custom title bar. Take the sn-titlebar-height off of
the app content height so its not overflowing */
Expand Down Expand Up @@ -257,10 +247,7 @@ function registerIpcMessageListener(webBridge: any) {
desktopManager.desktop_windowGainedFocus();
} else if (message === IpcMessages.InstallComponentComplete) {
// Responses from packageManager
desktopManager.desktop_onComponentInstallationComplete(
data.component,
data.error
);
desktopManager.desktop_onComponentInstallationComplete(data.component, data.error);
} else if (message === IpcMessages.UpdateAvailable) {
desktopManager.desktop_updateAvailable();
} else if (message === IpcMessages.DownloadBackup) {
Expand Down
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"productName": "Standard Notes",
"description": "An end-to-end encrypted notes app for digitalists and professionals.",
"author": "Standard Notes <help@standardnotes.com>",
"version": "3.12.0",
"version": "3.12.1",
"main": "./dist/index.js",
"dependencies": {
"keytar": "^7.7.0",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "standard-notes",
"main": "./app/dist/index.js",
"version": "3.12.0",
"version": "3.12.1",
"repository": {
"type": "git",
"url": "git://github.com/standardnotes/desktop"
Expand Down
2 changes: 1 addition & 1 deletion web
Submodule web updated from b2a692 to f0867e

0 comments on commit d8b5561

Please sign in to comment.