Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Resolved display cookie diff setting inconsistency reported in [forum:/forumpost/f7e18f946b | forum post f7e18f946b]. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
e378f9300e9da364546556107f4c2ad1 |
| User & Date: | stephan 2021-03-19 16:01:43.159 |
Context
|
2021-03-25
| ||
| 00:17 | Create new branch named "panic-reduction" ... (check-in: 1efa8d7f18 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:/forumpost/04b37ca5a5 | forum post 04b37ca5a5]. ... (check-in: e9ed315866 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: c973643209 user: stephan tags: chat-fetch-port) | |
|
2021-03-19
| ||
| 16:01 | Resolved display cookie diff setting inconsistency reported in [forum:/forumpost/f7e18f946b | forum post f7e18f946b]. ... (check-in: e378f9300e 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: 999e33cc7a 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));
}
|
| ︙ | ︙ |