From 7fa4b7c8b59531f7fa336e3c282d8d912bf933eb Mon Sep 17 00:00:00 2001 From: Plusb Preco Date: Fri, 22 Apr 2016 23:15:31 +0900 Subject: [PATCH] :memo: Normalize code tags [ci skip] --- docs/api/app.md | 4 ++-- docs/api/browser-window.md | 4 ++-- docs/api/process.md | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/api/app.md b/docs/api/app.md index f86a205e6f96..54e40263eab9 100644 --- a/docs/api/app.md +++ b/docs/api/app.md @@ -453,7 +453,7 @@ use this method to ensure single instance. An example of activating the window of primary instance when a second instance starts: -```js +```javascript var myWindow = null; var shouldQuit = app.makeSingleInstance(function(commandLine, workingDirectory) { @@ -489,7 +489,7 @@ correctly when DWM composition is disabled). Usage example: -```js +```javascript let browserOptions = {width: 1000, height: 800}; // Make the window transparent only if the platform supports it. diff --git a/docs/api/browser-window.md b/docs/api/browser-window.md index 97dd2d972950..29073c7539bf 100644 --- a/docs/api/browser-window.md +++ b/docs/api/browser-window.md @@ -315,7 +315,7 @@ Commands are lowercased with underscores replaced with hyphens and the `APPCOMMAND_` prefix stripped off. e.g. `APPCOMMAND_BROWSER_BACKWARD` is emitted as `browser-backward`. -```js +```javascript someWindow.on('app-command', function(e, cmd) { // Navigate the window back when the user hits their mouse back button if (cmd === 'browser-backward' && someWindow.webContents.canGoBack()) { @@ -682,7 +682,7 @@ Changes the attachment point for sheets on Mac OS X. By default, sheets are attached just below the window frame, but you may want to display them beneath a HTML-rendered toolbar. For example: -``` +```javascript var toolbarRect = document.getElementById('toolbar').getBoundingClientRect(); win.setSheetOffset(toolbarRect.height); ``` diff --git a/docs/api/process.md b/docs/api/process.md index ce76eb2d99aa..17c0be10926c 100644 --- a/docs/api/process.md +++ b/docs/api/process.md @@ -23,7 +23,7 @@ beginning to load the web page or the main script. It can be used by the preload script to add removed Node global symbols back to the global scope when node integration is turned off: -```js +```javascript // preload.js var _setImmediate = setImmediate; var _clearImmediate = clearImmediate;