From cd2386c38b6420bdfe06cff7d2a55e1d8099666f Mon Sep 17 00:00:00 2001 From: Dean Jackson Date: Tue, 14 Jul 2020 13:10:51 +0200 Subject: [PATCH] Change variable name --- doc/scripts.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/scripts.md b/doc/scripts.md index 2639914..119623e 100644 --- a/doc/scripts.md +++ b/doc/scripts.md @@ -121,7 +121,7 @@ The `inject` command outputs the return value of the executed JavaScript as JSON ```bash #!/bin/bash -./alfred-firefox inject 'Array.from(document.querySelectorAll("h2")).map(n => n.innerText)' +./alfred-firefox inject 'Array.from(document.querySelectorAll("h2")).map(el => el.innerText)' ``` Outputs (for [this page][execute-docs]):