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

3forpage

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

3forpage - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

50

index.js

@@ -23,33 +23,31 @@ 'use strict';

return _possibleConstructorReturn(this, (Widgets.__proto__ || Object.getPrototypeOf(Widgets)).apply(this, arguments));
}
var _this = _possibleConstructorReturn(this, (Widgets.__proto__ || Object.getPrototypeOf(Widgets)).call(this));
_createClass(Widgets, [{
key: 'componentDidMount',
value: function componentDidMount() {
if (!window.__3fp) {
var _props = this.props,
license = _props.license,
onLoaded = _props.onLoaded,
onError = _props.onError;
if (!window.__3fp) {
var _this$props = _this.props,
license = _this$props.license,
onLoaded = _this$props.onLoaded,
onError = _this$props.onError;
if (!license) {
console.error('You forgot to provide 3ForPage license id. Widgets will not work correctly.');
return;
}
if (!license) {
console.error('You forgot to provide 3ForPage license id. Widgets will not work correctly.');
return _possibleConstructorReturn(_this);
}
window.__3fp = window.__3fp || {};
window.__3fp.license = license;
var fp = document.createElement('script');
fp.type = 'text/javascript';
fp.async = true;
fp.src = 'https://widgets-3forpage.firebaseapp.com/widgets.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(fp, s);
fp.addEventListener('load', onLoaded);
fp.addEventListener('error', onError);
}
window.__3fp = window.__3fp || {};
window.__3fp.license = license;
var fp = document.createElement('script');
fp.type = 'text/javascript';
fp.async = true;
fp.src = 'https://widgets-3forpage.firebaseapp.com/widgets.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(fp, s);
fp.addEventListener('load', onLoaded);
fp.addEventListener('error', onError);
}
}, {
return _this;
}
_createClass(Widgets, [{
key: 'render',

@@ -56,0 +54,0 @@ value: function render() {

{
"name": "3forpage",
"version": "1.0.0",
"version": "1.0.1",
"description": "React component for widgets from 3forpage.com",

@@ -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