6 lines
223 B
Bash
Executable File
6 lines
223 B
Bash
Executable File
#!/bin/sh
|
|
|
|
TAB_PATH=$(dirname "$0")
|
|
TAB_ID=$(cat ${TAB_PATH}/.tab-id)
|
|
echo '{"id":1,"method":"Runtime.evaluate","params":{"expression":"location.reload()"}}' | websocat ws://localhost:9222/devtools/page/$TAB_ID > /dev/null
|