Skip to main content

ServiceWorkerInfo Object

  • scriptUrl string - The full URL to the script that this service worker runs此服务工作程序运行的脚本的完整URL
  • scope string - The base URL that this service worker is active for.此服务工作程序处于活动状态的基本URL。
  • renderProcessId number - The virtual ID of the process that this service worker is running in. 此服务工作程序正在运行的进程的虚拟ID。This is not an OS level PID. 这不是操作系统级别的PID。This aligns with the ID set used for webContents.getProcessId().这与用于webContents.getProcessId()的ID集一致。