Skip to content

Commit

Permalink
Added few comments to lfpl api
Browse files Browse the repository at this point in the history
  • Loading branch information
Byson94 committed Dec 24, 2024
1 parent 718d910 commit 2d29fe7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Plugin manager/lfpl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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") {
Expand Down

0 comments on commit 2d29fe7

Please sign in to comment.