Skip to content

Commit

Permalink
Expose error when rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
jvidalv committed Apr 4, 2024
1 parent 1d2a719 commit 232a4a7
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/injected/index.tsx
Expand Up @@ -15,7 +15,7 @@ import {
showContent,
} from "./utils/loader";
import { injectThreads } from "./threads";
import { ignoreThreads } from "../domains/thread";
import { parseThreadsInPage } from "../domains/thread";

window.ignite = {
isFirstRender: true,
Expand Down Expand Up @@ -59,7 +59,7 @@ window.ignite = {
injectThread();
}

ignoreThreads();
parseThreadsInPage();
},
};

Expand All @@ -69,7 +69,11 @@ window.ignite
window.ignite.isFirstRender = false;
console.log("MV-Ignited🔥 successfully rendered ✅");
})
.catch(() => {
.catch((error) => {
showContent();
console.log("MV-Ignited🔥 errored 🔴");
console.error(error);
console.info(
"⬆️ Por favor, comparte el mensaje anterior para que pueda solucionarlo. 🙏🏼",
);
});

0 comments on commit 232a4a7

Please sign in to comment.