register method
Implementation
Future<ServiceWorkerRegistration> register(String scriptURL,
[RegistrationOptions? options]) =>
js_util.promiseToFuture(
js_util.callMethod(this, 'register', [scriptURL, options]));
Future<ServiceWorkerRegistration> register(String scriptURL,
[RegistrationOptions? options]) =>
js_util.promiseToFuture(
js_util.callMethod(this, 'register', [scriptURL, options]));