New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.2.3 to 0.3.0

6

lib/window-controls.js

@@ -42,3 +42,3 @@ 'use strict';

'button',
{ 'aria-label': 'minimize', title: 'Minimize', tabIndex: '-1', className: 'window-control window-minimize', disabled: disableMinimize,
{ 'aria-label': 'minimize', tabIndex: '-1', className: 'window-control window-minimize', disabled: disableMinimize,
onClick: e => currentWindow.minimize() },

@@ -53,3 +53,3 @@ _react2.default.createElement(

'button',
{ 'aria-label': 'maximize', title: 'Maximize', tabIndex: '-1', className: 'window-control window-maximize', disabled: disableMaximize,
{ 'aria-label': 'maximize', tabIndex: '-1', className: 'window-control window-maximize', disabled: disableMaximize,
onClick: e => currentWindow.isMaximizable() ? currentWindow.isMaximized() ? currentWindow.unmaximize() : currentWindow.maximize() : null },

@@ -64,3 +64,3 @@ _react2.default.createElement(

'button',
{ 'aria-label': 'close', title: 'Close', tabIndex: '-1', className: 'window-control window-close',
{ 'aria-label': 'close', tabIndex: '-1', className: 'window-control window-close',
onClick: e => currentWindow.close() },

@@ -67,0 +67,0 @@ _react2.default.createElement(

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

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

@@ -24,3 +24,3 @@ import React, { Component } from 'react'

<div className="window-controls">
<button aria-label="minimize" title="Minimize" tabIndex="-1" className="window-control window-minimize" disabled={disableMinimize}
<button aria-label="minimize" tabIndex="-1" className="window-control window-minimize" disabled={disableMinimize}
onClick={e => currentWindow.minimize()}>

@@ -31,3 +31,3 @@ <svg aria-hidden="true" version="1.1" width="10" height="10">

</button>
<button aria-label="maximize" title="Maximize" tabIndex="-1" className="window-control window-maximize" disabled={disableMaximize}
<button aria-label="maximize" tabIndex="-1" className="window-control window-maximize" disabled={disableMaximize}
onClick={e => currentWindow.isMaximizable() ? currentWindow.isMaximized() ? currentWindow.unmaximize() : currentWindow.maximize() : null}>

@@ -38,3 +38,3 @@ <svg aria-hidden="true" version="1.1" width="10" height="10">

</button>
<button aria-label="close" title="Close" tabIndex="-1" className="window-control window-close"
<button aria-label="close" tabIndex="-1" className="window-control window-close"
onClick={e => currentWindow.close()}>

@@ -41,0 +41,0 @@ <svg aria-hidden="true" version="1.1" width="10" height="10">

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