Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

electron-react-titlebar

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-react-titlebar - npm Package Compare versions

Comparing version 0.6.0 to 0.7.0

4

lib/index.js

@@ -27,4 +27,4 @@ 'use strict';

_react2.default.createElement('div', { className: 'resize-handle resize-handle-left' }),
typeof icon !== 'undefined' && _react2.default.createElement('img', { className: 'icon', src: icon }),
_react2.default.createElement(_menu.MenuBar, { menu: menu }),
!!icon && _react2.default.createElement('img', { className: 'icon', src: icon }),
!!menu && _react2.default.createElement(_menu.MenuBar, { menu: menu }),
children,

@@ -31,0 +31,0 @@ _react2.default.createElement(_windowControls.WindowControls, { disableMinimize: disableMinimize, disableMaximize: disableMaximize })

{
"name": "electron-react-titlebar",
"version": "0.6.0",
"version": "0.7.0",
"description": "A github desktop style title bar component for electron.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -40,15 +40,15 @@ # electron-react-titlebar

Disable minimize button
Disable minimize button (optional).
#### disableMaximize
Disable maximize button
Disable maximize button (optional).
#### icon
Path to icon file.
Path to icon file (optional).
#### menu
Menu template of [Electron's Menu](https://github.com/electron/electron/blob/master/docs/api/menu.md#main-process)
Menu template of [Electron's Menu](https://github.com/electron/electron/blob/master/docs/api/menu.md#main-process) (optional).

@@ -55,0 +55,0 @@ Note: electron-react-titlebar is supporting a subset of [Electron's MenuItem](https://github.com/electron/electron/blob/master/docs/api/menu-item.md).

@@ -11,4 +11,4 @@ import React from 'react'

<div className="resize-handle resize-handle-left" />
{typeof icon !== 'undefined' && <img className="icon" src={icon} />}
<MenuBar menu={menu} />
{!!icon && <img className="icon" src={icon} />}
{!!menu && <MenuBar menu={menu} />}
{children}

@@ -15,0 +15,0 @@ <WindowControls disableMinimize={disableMinimize} disableMaximize={disableMaximize} />

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc