i have code separated in many js files, working together. have 1 background.js alone, listening pageaction's click. click opens in new windows extension's html document load other scripts, < script > tags.
i want eliminate html document, , run scripts in background.
if convert scripts event page' scripts (i.e. background pages persistent:false), them load pageaction's click?
do single listener in 1 event page script file open other event pages scripts files? or have every single js file have own same listener?
yes, turned every script event page, , work expected. whole group executed when 1 listener called.
in manifest:
"background":{"scripts":["script1", "script2", ...], "persistent":false}
Comments
Post a Comment