Compute unique collection id using full sourceUrl if relative url given (#179)

* loading: update sourceToId to resolve any pathname to absolute URL (via document.baseURI) for computing unique id (eg. to avoid conflicts of two 'webarchive.wacz' loaded from different paths) - matches behavior used in embed
embed demo: fix typo, don't change default service worker name
This commit is contained in:
Ilya Kreymer
2023-06-15 09:45:01 -07:00
committed by GitHub
parent 99a034af49
commit b26f4b082d
6 changed files with 15 additions and 5 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ body {
</head>
<body>
<replay-web-page swname="custom.js" replaybase="./" embed="replay-with-info" src="./docs/assets/tweet-example.wacz" url="page:0"></replay-web-page>
<replay-web-page replaybase="./" embed="replay-with-info" src="./docs/assets/tweet-example.wacz" url="page:0"></replay-web-page>
</body>
</html>