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

airkit

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

airkit - npm Package Compare versions

Comparing version 0.0.2 to 0.1.0

ui/index.js

10

analytics/googlecontentexperiments.js

@@ -6,2 +6,3 @@ /**

var objects = require('../utils/objects');
var ui = require('../utils/ui');
var uri = require('../utils/uri');

@@ -44,6 +45,7 @@

var attrName = config.attributeName;
var styleEl = document.createElement('style');
styleEl.textContent = '[' + attrName + ']:not([' + attrName +
'="' + enabledVariation + '"]) { display: none !important }';
document.getElementsByTagName('head')[0].appendChild(styleEl);
var selector = '[' + attrName + ']:not([' + attrName +
'="' + enabledVariation + '"])';
var rules = {};
rules[selector] = {'display': 'none !important'};
ui.createStyle(rules);
}

@@ -50,0 +52,0 @@

2

package.json
{
"name": "airkit",
"version": "0.0.2",
"version": "0.1.0",
"description": "Open-source JS modules",

@@ -5,0 +5,0 @@ "repository": {

@@ -6,2 +6,7 @@ /**

function isMobile() {
return isIOS() || isAndroid();
}
function isIOS() {

@@ -33,3 +38,4 @@ return /iPhone|iPad|iPod/i.test(navigator.userAgent);

isIE: isIE,
isIEorEdge: isIEorEdge
isIEorEdge: isIEorEdge,
isMobile: isMobile
};

@@ -121,4 +121,8 @@ /**

if (player) {
if (player && videoId == this.activeVideoId_) {
return;
} else if (player && videoId != this.activeVideoId_) {
player.loadVideoById(videoId, 0, 'large');
this.activeVideoId_ = videoId;
return;
}

@@ -131,2 +135,3 @@ var playerEl = document.querySelector('.' + this.config.className + '-player');

player = new YT.Player(playerEl, options);
this.activeVideoId_ = videoId;
}

@@ -133,0 +138,0 @@

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