Skip to content

Update onload.js to support new flags #152

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
codeworksdev opened this issue Apr 24, 2018 · 0 comments
Closed

Update onload.js to support new flags #152

codeworksdev opened this issue Apr 24, 2018 · 0 comments

Comments

@codeworksdev
Copy link
Owner

codeworksdev commented Apr 24, 2018

The standard onload.js template was updated to support the new LAZY_LOAD_PLUGINS (#151) and DEBUG_MODE (#177) flags.

EXAMPLE CODE

function mochi_init()
{
    this.setOption(
        {
            CLICK_NAME              : 'auto',
            DEBUG_MODE              : false,
            ENABLE_SERVICE_WORKER   : false,
            LAZY_LOAD_PLUGINS       : [],
            SW_UPDATE_NOTIFICATIONS : true,
            SW_VERBOSE_SYNCING      : true,
        }
        );
};
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant