Socket
Socket
Sign inDemoInstall

@hoory/embed

Package Overview
Dependencies
2
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.24 to 1.0.25

2

package.json
{
"name": "@hoory/embed",
"version": "1.0.24",
"version": "1.0.25",
"private": false,

@@ -5,0 +5,0 @@ "description": "Hoory script embedder",

@@ -17,10 +17,17 @@ <p align="center">

```js
import { useEffect } from "react";
import { useHoory } from "@hoory/embed";
export default function App() {
const { isInitialized } = useHoory("WORKSPACE_SLUG");
const { isScriptLoaded, isChatInitialized } = useHoory("SLUG");
useEffect(() => {
if (isScriptLoaded) {
window.hoory.openChat();
}
}, [isScriptLoaded]);
return (
<div className="App">
<h1>Hoory is {isInitialized ? "isInitialized" : "not isInitialized"}</h1>
<h2>Start editing to see some magic happen!</h2>
<h1>Hoory script is {isScriptLoaded ? "isInitialized" : "not isInitialized"}</h1>
</div>

@@ -27,0 +34,0 @@ );

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc