Skip to content

Commit

Permalink
Agent sandbox store and forward
Browse files Browse the repository at this point in the history
  • Loading branch information
neodigm committed Nov 19, 2023
1 parent f3d95d7 commit 15a1907
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dist/neodigm55__v3_1.js
Original file line number Diff line number Diff line change
Expand Up @@ -1557,7 +1557,7 @@ let neodigmPWA = new NeodigmPWA( document, [ neodigmOpt.N55_PWA_TEMPLATE_ID ] )
class NeodigmAgent {
constructor(_d, _aQ) { // plugin extension manifest
this._d = _d; this._aQ = _aQ;
this.aeWdgs = [];
this.aeWdgs = []; this.sandbox = null;
this.bIsInit = false
}
async init() { // rinit
Expand All @@ -1573,6 +1573,9 @@ class NeodigmAgent {
.then( rs => {
if( rs?.compressed && LZString && neodigmUtils ){
oeWdg.innerHTML = LZString.decompressFromEncodedURIComponent( rs.compressed )
if( rs?.sandbox ){
this.sandbox = LZString.decompressFromEncodedURIComponent( rs.sandbox )
}
if( rs?.assets ){ // Inject script elms from manifest
rs.assets.forEach( ( aAst )=>{
if( aAst[0].toLowerCase() == "js" ) neodigmUtils.fAsyncJS( document, aAst[1] )
Expand Down

0 comments on commit 15a1907

Please sign in to comment.