Using Google Drive REST API in a (service) worker

547 Views Asked by At

In a non-worker script, I can use the Drive API by loading the client library. But in a worker there is no DOM, and the library assumes that I have it.

Is there a way to use Drive API in a (service) worker? (I need to save files to Drive's appstorage with the sync event)

0

There are 0 best solutions below