Fossil

Check-in [8a7620e4a3]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Reinforce the previous for the case when access to non-existent field resolves to null (instead of undefined).
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | vdiff-context-glob
Files: files | file ages | folders
SHA3-256: 8a7620e4a305f02822ab439b6d20ed9db6453e44d49ad12d81b26bc97e2892b3
User & Date: george 2021-04-26 19:26:30.427
Context
2021-04-26
19:45
Gracefully degrade to the old behaviour if a user's browser does not support <code>URLSearchParams</code>. ... (check-in: 262c0fb675 user: george tags: trunk)
19:26
Reinforce the previous for the case when access to non-existent field resolves to null (instead of undefined). ... (Closed-Leaf check-in: 8a7620e4a3 user: george tags: vdiff-context-glob)
19:12
Gracefully degrade to the old behaviour if a user's browser does not support <code>searchParams()</code> method for URLs. ... (check-in: 9ec88b5771 user: george tags: vdiff-context-glob)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/graph.js.
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
      canvasDiv.className = canvasDiv.className.replace(" sel", "");
    }else{
      if( tx.fileDiff ){
        location.href=tx.baseUrl + "/fdiff?v1="+selRow.h+"&v2="+p.h;
      }else{
        var href = tx.baseUrl + "/vdiff?from="+selRow.h+"&to="+p.h;
        let params = (new URL(document.location)).searchParams;
        if(typeof params === "object"){
          /* When called from /timeline page, If chng=str was specified in the
          ** QueryString, specify glob=str on the /vdiff page */
          let glob = params.get("chng");
          if( !glob ){
            /* When called from /vdiff page, keep the glob= QueryString if
            ** present. */
            glob = params.get("glob");







|







570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
      canvasDiv.className = canvasDiv.className.replace(" sel", "");
    }else{
      if( tx.fileDiff ){
        location.href=tx.baseUrl + "/fdiff?v1="+selRow.h+"&v2="+p.h;
      }else{
        var href = tx.baseUrl + "/vdiff?from="+selRow.h+"&to="+p.h;
        let params = (new URL(document.location)).searchParams;
        if(params && typeof params === "object"){
          /* When called from /timeline page, If chng=str was specified in the
          ** QueryString, specify glob=str on the /vdiff page */
          let glob = params.get("chng");
          if( !glob ){
            /* When called from /vdiff page, keep the glob= QueryString if
            ** present. */
            glob = params.get("glob");