about summary refs log tree commit diff stats
path: root/doc/api.md
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-07-28 20:50:51 +0200
committerbptato <nincsnevem662@gmail.com>2024-07-28 21:06:28 +0200
commit9653c35fb9a4398942ecb305835a95fbd87c433a (patch)
tree2db576e71cd89557592715d64ecb4fb4a46f8c66 /doc/api.md
parentdbf2e0e831ebaf8a0e6f375a8f423f87280e7862 (diff)
downloadchawan-9653c35fb9a4398942ecb305835a95fbd87c433a.tar.gz
buffer, pager, config: add meta-refresh + misc fixes
* buffer, pager, config: add meta-refresh value, which makes it possible
  to follow http-equiv=refresh META tags.
* config: clean up redundant format mode parser
* timeout: accept varargs for params to pass on to functions
* pager: add "options" dict to JS gotoURL
* twtstr: remove redundant startsWithNoCase
Diffstat (limited to 'doc/api.md')
-rw-r--r--doc/api.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/api.md b/doc/api.md
index ac928baf..0480e901 100644
--- a/doc/api.md
+++ b/doc/api.md
@@ -110,9 +110,12 @@ Same as `pager.load(url + "\n")`.</td>
 </tr>
 
 <tr>
-<td>`gotoURL(url)`</td>
+<td>`gotoURL(url, options = {replace: null, contentType: null})`</td>
 <td>Go to the specified URL immediately (without a prompt). This differs from
 `load` and `loadSubmit` in that it *does not* try to correct the URL.<br>
+When `replace` is set, the new buffer may replace the old one if it loads
+successfully. When `contentType` is set, the new buffer's content type is
+forcefully set to that string.<br>
 Use this for loading automatically retrieved (i.e. non-user-provided) URLs.</td>
 </tr>