-
Notifications
You must be signed in to change notification settings - Fork 512
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added code snippet to explain how to use splash behind proxy #589
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #589 +/- ##
==========================================
+ Coverage 87.7% 87.71% +<.01%
==========================================
Files 42 39 -3
Lines 5539 5519 -20
Branches 758 758
==========================================
- Hits 4858 4841 -17
+ Misses 510 509 -1
+ Partials 171 169 -2
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is already an example in scripting-ref.rst, so not sure if we need another one in the examples/
folder
@@ -0,0 +1,19 @@ | |||
function main(splash) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think "use-proxy.lua" would be a better name (the convention in the examples/
folder is to use dash-separated file name, not camel case).
} | ||
end) | ||
local url = splash.args.url | ||
assert(splash:go(url)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't make sense to create a local variable and only use it once. Simply assert(splash:go(splash.args.url))
would do.
No description provided.