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

electron-panel

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-panel - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

4

CHANGELOG.md
## CHANGELOG
### v1.2.1
- Prevent load the panel frame more than once when its src changed.
### v1.2.0

@@ -4,0 +8,0 @@

17

lib/renderer/panel-frame.js

@@ -192,2 +192,3 @@ 'use strict';

this._inited = false;
this._loaded = false;
}

@@ -242,9 +243,16 @@

let src = this.getAttribute('src');
if ( src !== null ) {
console.warn('Can not change the src if panel is loaded');
return;
}
if ( src !== val ) {
if ( this._loaded ) {
console.warn('Can not change the src if panel is loaded');
return;
}
this.setAttribute('src', val);
// skip load the panel if it is not inited.
if ( !this._inited ) {
return;
}
this._load(val);

@@ -463,2 +471,3 @@ }

this._apply(panelProto);
this._loaded = true;

@@ -465,0 +474,0 @@ // add it to panel list

{
"name": "electron-panel",
"version": "1.2.0",
"version": "1.2.1",
"description": "Manipulate panels in window for Electron",

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

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