'how to use IndexedDB in the background service_worker of Chrome Extension Manifest 3?

we could use chrome.storage.local in the background service_worker of manifest version 3, but how could we use IndexedDB in service_worker ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source