@blocksuite/store
Advanced tools
Comparing version 0.3.0-20221229073953-c859d99 to 0.3.0-20221229170017-735c989
@@ -14,3 +14,5 @@ // @ts-ignore | ||
const isWeb = typeof window !== 'undefined'; | ||
const isLocalhost = isWeb && window.location.hostname === 'localhost'; | ||
const isLocalhost = isWeb && | ||
(window.location.hostname === 'localhost' || | ||
window.location.hostname === '127.0.0.1'); | ||
const signaling = isLocalhost ? LOCAL_SIGNALING : DEFAULT_SIGNALING; | ||
@@ -17,0 +19,0 @@ export class DebugDocProvider extends WebrtcProvider { |
{ | ||
"name": "@blocksuite/store", | ||
"version": "0.3.0-20221229073953-c859d99", | ||
"version": "0.3.0-20221229170017-735c989", | ||
"description": "BlockSuite data store built for general purpose state management.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -42,3 +42,6 @@ import type * as Y from 'yjs'; | ||
const isWeb = typeof window !== 'undefined'; | ||
const isLocalhost = isWeb && window.location.hostname === 'localhost'; | ||
const isLocalhost = | ||
isWeb && | ||
(window.location.hostname === 'localhost' || | ||
window.location.hostname === '127.0.0.1'); | ||
const signaling = isLocalhost ? LOCAL_SIGNALING : DEFAULT_SIGNALING; | ||
@@ -45,0 +48,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
419049
7014