// This is the entry point for the renderer process.
//
// Here we disable a few electron settings and mount the root component.

import { renderRoot } from "./root-component"
import { webFrame } from "electron"

/**
 * CSS reset
 */

/**
 * Electron-focused CSS resets
 */

/**
 * Zooming resets
 */
webFrame.setVisualZoomLevelLimits(1, 1)
webFrame.setLayoutZoomLevelLimits(0, 0)

/**
 * Drag and drop resets
 */
document.addEventListener("dragover", (event): void => event.preventDefault())
document.addEventListener("drop", (event): void => event.preventDefault())

// mount the root component
renderRoot()

// This is the entry point for the renderer process.
//
// Here we disable a few electron settings and mount the root component.

import { renderRoot } from "./components/root-component"
import { webFrame } from "electron"

/**
 * CSS reset
 */

/**
 * Electron-focused CSS resets
 */

/**
 * Zooming resets
 */
webFrame.setVisualZoomLevelLimits(1, 1)
webFrame.setLayoutZoomLevelLimits(0, 0)

/**
 * Drag and drop resets
 */
document.addEventListener("dragover", (event): void => event.preventDefault())
document.addEventListener("drop", (event): void => event.preventDefault())

// mount the root component
renderRoot()

Fix root component import path
Fix root component import path
