Forge Documentation


This documentation is deprecated, and only kept here to support users of browser extension APIs. If you are using for iOS or Android, see

background: Background scripts

Platforms: Browser

The background module allows your app to have a persistent Javascript context running in the background


Browsers have the concept of content scripts and background files.

This field lists the files that should be included in background context.

    "modules": {
        "background": {
            "files": ["js/background.js"]