bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: INFO_CONFIG and info.js customization


From: Gavin Smith
Subject: Re: INFO_CONFIG and info.js customization
Date: Sun, 8 Nov 2020 09:24:20 +0000
User-agent: Mutt/1.9.4 (2018-02-28)

On Sat, Nov 07, 2020 at 03:43:30PM -0800, Per Bothner wrote:

> My suggestion is to flatten the config structure:
> 
>   var config = {
>     EXT: ".html",
>     INDEX_NAME: "index.html",
>     INDEX_ID: "index",
>     MAIN_ANCHORS: ["Top", "SEC_Contents"],
>     WARNING_TIMEOUT: 3000,
>     SCREEN_MIN_WIDTH: 700,
> 
>     // hooks:
>     /** Define a function called after 'DOMContentLoaded' event in
>         the INDEX_NAME context.
>         @type {function (): void}*/
>     on_main_load: null,
>     /** Define a function called after 'DOMContentLoaded' event in
>         the iframe context.
>         @type {(function (): void)} */
>     on_iframe_load: null
>   };
> 
> Alternatively, we can replace the Object.assign call with something
> that will also merge the hooks field.

Either option is fine with me; please go ahead and make the change
for whatever you make work.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]