From 5382f2353e693bc8e2682eb045e8bb9930829adc Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Wed, 17 Mar 2021 22:50:23 +0900 Subject: Load content scripts on document.body is ready --- src/console/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/console') diff --git a/src/console/index.tsx b/src/console/index.tsx index 228625e..f9313a0 100644 --- a/src/console/index.tsx +++ b/src/console/index.tsx @@ -11,7 +11,7 @@ import ReactDOM from "react-dom"; const store = createStore(reducers, applyMiddleware(promise)); -window.addEventListener("load", () => { +window.addEventListener("DOMContentLoaded", () => { const wrapper = document.getElementById("vimvixen-console"); ReactDOM.render( -- cgit v1.2.3