- Consolidated duplicate UndoManagers to single instance - Fixed connection promise to only resolve on 'connected' status - Fixed WebSocketProvider import (WebsocketProvider) - Added proper doc.destroy() cleanup - Renamed isPresenceInitialized property to avoid conflict Co-Authored-By: Paperclip <noreply@paperclip.ing>
22 lines
426 B
JavaScript
22 lines
426 B
JavaScript
import { Component, Fragment, options } from 'preact';
|
|
|
|
export function initDevTools() {
|
|
const globalVar =
|
|
typeof globalThis !== 'undefined'
|
|
? globalThis
|
|
: typeof window !== 'undefined'
|
|
? window
|
|
: undefined;
|
|
|
|
if (
|
|
globalVar !== null &&
|
|
globalVar !== undefined &&
|
|
globalVar.__PREACT_DEVTOOLS__
|
|
) {
|
|
globalVar.__PREACT_DEVTOOLS__.attachPreact('10.24.2', options, {
|
|
Fragment,
|
|
Component
|
|
});
|
|
}
|
|
}
|