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

@consuo/web-component-epg

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@consuo/web-component-epg - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

epg-screenshot-progress.png

19

index.js
import { update } from "./utils/scheduleService";
import { ATTTRIBUTES } from "./utils/constants";
import { isScrolledIntoView } from "./utils/helpers";

@@ -84,6 +85,16 @@ export class ConsuoEPG extends HTMLElement {

const active = document.querySelector("div[data-active='active'");
active.scrollIntoView({
inline: "center",
});
const active = this.querySelector("div[data-active='active'");
if (isScrolledIntoView(active)) {
active.scrollIntoView({
inline: "center",
});
} else {
window.addEventListener("scroll", () => {
if (isScrolledIntoView(active)) {
active.scrollIntoView({
inline: "center",
});
}
});
}
}

@@ -90,0 +101,0 @@

{
"name": "@consuo/web-component-epg",
"version": "0.1.0",
"version": "0.1.1",
"description": "Show a Consuo schedule",

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

@@ -5,3 +5,4 @@ # @consuo/web-component-epg

![Up next Screenshot](epg-screenshot.png)
![EPG Screenshot](epg-screenshot.png)
![EPG progress Screenshot](epg-screenshot-progress.png)

@@ -8,0 +9,0 @@ ## Install

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