Adds a bootstrap function for easier startup of wmeSdk, WazeWrap, and ScriptUpdateMonitor.
Ниже показаны версии этого скрипта, в которых изменялся код. Показать все версии.
Update to new SDK event
Use ??= instead of ||=
Fix callback function
Make scriptName, scriptId, and scriptVersion optional (retrieved from GM_info if not supplied)
If scriptUpdateMonitor option is supplied, no need to supply useWazeWrap.
Return wmeSdk from bootstrapFunc to allow using async/await or .then instead of callback
Another version bump test