Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Resolved display cookie diff setting inconsistency reported in forum post f7e18f946b. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
e378f9300e9da364546556107f4c2ad1 |
User & Date: | stephan 2021-03-19 16:01:43 |
Context
2021-03-25
| ||
00:17 | Create new branch named "panic-reduction" ... (check-in: 1efa8d7f user: larrybr tags: panic-reduction) | |
2021-03-22
| ||
03:03 | Ported /chat from windows.fetch() to fossil.fetch() for XHR calls, as discussed in forum post 04b37ca5a5. ... (check-in: e9ed3158 user: stephan tags: trunk) | |
2021-03-21
| ||
18:25 | Ported /chat from window.fetch to fossil.fetch, as FF versions as recently as 2017 fail with window.fetch. Needs more testing before merge but seems to work. ... (check-in: c9736432 user: stephan tags: chat-fetch-port) | |
2021-03-19
| ||
16:01 | Resolved display cookie diff setting inconsistency reported in forum post f7e18f946b. ... (check-in: e378f930 user: stephan tags: trunk) | |
03:10 | Add compile-time option to enable TH1 memory leak tracking. Also, fix TH1 memory leak, improve a couple #ifdef's, and fix JSON assert in fossil_print_error() seen when an invalid repository is specified. ... (check-in: 999e33cc user: mistachkin tags: trunk) | |
Changes
Changes to src/info.c.
︙ | ︙ | |||
1660 1661 1662 1663 1664 1665 1666 | ** * The "diff" query parameter ** * The "diff" field of the user display cookie ** * The "preferred-diff-type" setting ** * 1 for mobile and 2 for desktop, based on the UserAgent */ int preferred_diff_type(void){ int dflt; | | > | 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 | ** * The "diff" query parameter ** * The "diff" field of the user display cookie ** * The "preferred-diff-type" setting ** * 1 for mobile and 2 for desktop, based on the UserAgent */ int preferred_diff_type(void){ int dflt; static char zDflt[2] /*static b/c cookie_link_parameter() does not copy it!*/; dflt = db_get_int("preferred-diff-type",-99); if( dflt<=0 ) dflt = user_agent_is_likely_mobile() ? 1 : 2; zDflt[0] = dflt + '0'; zDflt[1] = 0; cookie_link_parameter("diff","diff", zDflt); return atoi(PD("diff",zDflt)); } |
︙ | ︙ |