misc usability fixes:

- links: make all replay links valid hashtags instead of empty "#"
- replaybar: fix padding on dropdown menu button
- a11y/focus: only set focus on replay frame if no sidebar is visible
bump electron to latest 10.1.2
set version to 1.1.0!
This commit is contained in:
Ilya Kreymer
2020-09-16 13:27:10 -07:00
parent c5fecb88b2
commit 4068a0265d
9 changed files with 105 additions and 93 deletions
+11 -1
View File
@@ -92,6 +92,16 @@ function getTS(iso) {
}
// ===========================================================================
function getReplayLink(view, url, ts) {
const params = new URLSearchParams();
params.set("view", view);
params.set("url", url);
params.set("ts", ts);
return "#" + params.toString();
}
// ===========================================================================
async function sourceToId(url) {
const digest = await digestMessage(url, 'SHA-256');
@@ -133,5 +143,5 @@ function parseURLSchemeHostPath(url) {
}
export { digestMessage, tsToDate, getTS, getPageDateTS, sourceToId, parseURLSchemeHostPath,
export { digestMessage, tsToDate, getTS, getPageDateTS, getReplayLink, sourceToId, parseURLSchemeHostPath,
registerSW, initDBWorker };