From 2d29fe7f6a832854523d0e5c2f7602440043fe24 Mon Sep 17 00:00:00 2001 From: Byson94 Date: Tue, 24 Dec 2024 23:30:56 +0530 Subject: [PATCH] Added few comments to lfpl api --- Plugin manager/lfpl.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Plugin manager/lfpl.js b/Plugin manager/lfpl.js index d91282e..1684a03 100644 --- a/Plugin manager/lfpl.js +++ b/Plugin manager/lfpl.js @@ -18,6 +18,8 @@ const lfpl = { html: null }, + + // Allows to load custom html or css code to the extension loadAsset(code, language) { if (language === "css") { try { @@ -68,6 +70,7 @@ const lfpl = { return "v0.2.0 alpha"; }, + // Since an extension accessing the localstorage and sessionstorage is too risk, we have API for that. localStorageAPI: { save(dat) { if (typeof dat === "object") {