Load local file in Chrome App Webview

前端 未结 4 1491
死守一世寂寞
死守一世寂寞 2021-01-02 17:23

In Chrome packaged apps you can use to load external pages inside the app. Is there a way to make them load a local file (an html file inside the packaged app)? I can\'t us

4条回答
  •  既然无缘
    2021-01-02 18:20

    The local-resources sample has an example of loading an html file in a webview. You need to specify the files in the webview.partitions section of manifest.json.

提交回复
热议问题