Unable to refresh new tab in my chrome extension

倾然丶 夕夏残阳落幕 提交于 2019-12-25 08:06:11

问题


In my chrome extension which replaces the new tab page, when I refresh the page it shows me file not found. Can anybody tell how to fix this issue? Is this has to do with either page history or file naming convention? I have index.html set in manifest.json:

  "chrome_url_overrides" : {
    "newtab": "index.html"
  }

回答1:


Change

<base href="/">

To

<base href="/index.html">

And it works!



来源:https://stackoverflow.com/questions/41277357/unable-to-refresh-new-tab-in-my-chrome-extension

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!