mirror of
https://github.com/tlsnotary/tlsn-extension.git
synced 2026-01-09 21:18:02 -05:00
fix: off by one error + updated README
This commit is contained in:
@@ -42,7 +42,7 @@ at your option.
|
||||
```
|
||||
$ git clone https://github.com/novnc/websockify && cd websockify
|
||||
$ ./docker/build.sh
|
||||
$ docker run -it --rm -p 55688:80 novnc/websockify 80 api.twitter.com:443
|
||||
$ docker run -it --rm -p 55688:80 novnc/websockify 80 api.x.com:443
|
||||
```
|
||||
|
||||
## Running Websockify Docker Image
|
||||
|
||||
@@ -61,7 +61,7 @@ function parseTwitterResp() {
|
||||
const revealed = `"screen_name":"${params.screen_name}"`;
|
||||
const selectionStart = bodyString.indexOf(revealed);
|
||||
const selectionEnd =
|
||||
selectionStart + revealed.length - 1;
|
||||
selectionStart + revealed.length;
|
||||
const secretResps = [
|
||||
bodyString.substring(0, selectionStart),
|
||||
bodyString.substring(selectionEnd, bodyString.length),
|
||||
@@ -98,7 +98,7 @@ function config() {
|
||||
steps: [
|
||||
{
|
||||
title: 'Visit Twitter website',
|
||||
cta: 'Go to twitter.com',
|
||||
cta: 'Go to x.com',
|
||||
action: 'start',
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user