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:
+11
-1
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user