mirror of
https://github.com/PrimalHQ/primal-web-app.git
synced 2024-10-01 17:31:13 +00:00
without loading primal extensions via localStorage key
This commit is contained in:
parent
4c06fd1534
commit
f19cddb892
@ -76,18 +76,6 @@ const Router: Component = () => {
|
||||
primalWindow.onPrimalUploadServerConnected = () => {};
|
||||
primalWindow.onPrimalCacheServerMessageReceived = () => {};
|
||||
primalWindow.onPrimalCacheServerMessageSent = () => {};
|
||||
|
||||
try {
|
||||
const exts = localStorage.getItem('primalExtensions');
|
||||
if (exts) {
|
||||
for (const url of JSON.parse(exts)) {
|
||||
console.log("loading primal extension:", url);
|
||||
const el = window.document.createElement("script");
|
||||
el.setAttribute("src", url);
|
||||
window.document.body.appendChild(el);
|
||||
}
|
||||
}
|
||||
} catch (ex) { console.log(ex); }
|
||||
}
|
||||
|
||||
const getKnownProfiles = ({ params }: RouteDataFuncArgs) => {
|
||||
|
Loading…
Reference in New Issue
Block a user