mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
add electron
This commit is contained in:
@@ -4,6 +4,13 @@ import App from './App';
|
||||
import { HelmetProvider } from 'react-helmet-async';
|
||||
import { HashRouter } from 'react-router-dom';
|
||||
|
||||
import PlebbitJs from '@plebbit/plebbit-js';
|
||||
// inject native functions into renderer
|
||||
// https://github.com/plebbit/plebbit-js/blob/master/docs/cross-platform-native-functions.md
|
||||
if (window.plebbitJsNativeFunctions) {
|
||||
PlebbitJs.setNativeFunctions(window.plebbitJsNativeFunctions);
|
||||
}
|
||||
|
||||
const root = ReactDOM.createRoot(document.getElementById('root'));
|
||||
root.render(
|
||||
<React.StrictMode>
|
||||
|
||||
Reference in New Issue
Block a user