New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

handsfree-for-web-modules

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

handsfree-for-web-modules - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

2

package.json
{
"name": "handsfree-for-web-modules",
"version": "1.1.0",
"version": "1.1.1",
"description": "Voice commands modules for Handsfree for web",

@@ -5,0 +5,0 @@ "source": "src/index.js",

import { executeBackgroundAction } from './helpers/background';
const zoomFactor = 0.1;
export function zoomInTab() {
const { tabs } = window.chrome;
tabs.query({ active: true, lastFocusedWindow: true }, (tab) => {
const tabId = tab[0].id;
tabs.getZoom(tabId, (zoom) => {
tabs.setZoom(tabId, zoom + zoomFactor);
});
});
}
export function zoomOutTab() {
const { tabs } = window.chrome;
tabs.query({
active: true,
lastFocusedWindow: true,
}, (tab) => {
const tabId = tab[0].id;
tabs.getZoom(tabId, (zoom) => {
tabs.setZoom(tabId, zoom - zoomFactor);
});
});
}
export function restoreZoom() {
const { tabs } = window.chrome;
tabs.query({
active: true,
lastFocusedWindow: true,
}, (tab) => {
const tabId = tab[0].id;
tabs.setZoom(tabId, 0);
});
}
function zoomIn() {

@@ -41,0 +4,0 @@ executeBackgroundAction({

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