-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Use the |shadow| function from src/shared/util.js in viewer.js #5691
Conversation
/botio-linux preview |
From: Bot.io (Linux)ReceivedCommand cmd_preview from @Snuffleupagus received. Current queue size: 0 Live output at: http://107.21.233.14:8877/d0defa6dfdc54d8/output.txt |
From: Bot.io (Linux)SuccessFull output at http://107.21.233.14:8877/d0defa6dfdc54d8/output.txt Total script time: 0.80 mins Published |
/botio test |
From: Bot.io (Linux)ReceivedCommand cmd_test from @timvandermeij received. Current queue size: 0 Live output at: http://107.21.233.14:8877/237382532190ca9/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @timvandermeij received. Current queue size: 0 Live output at: http://107.22.172.223:8877/b97dfb58847da7d/output.txt |
From: Bot.io (Windows)SuccessFull output at http://107.22.172.223:8877/b97dfb58847da7d/output.txt Total script time: 17.56 mins
|
From: Bot.io (Linux)SuccessFull output at http://107.21.233.14:8877/237382532190ca9/output.txt Total script time: 23.04 mins
|
Use the |shadow| function from src/shared/util.js in viewer.js
Nice work! |
Use the |shadow| function from src/shared/util.js in viewer.js
While working on refactoring the
PresentationMode
code, I noticed that in viewer.js we currently repeat the same "shadowing" code six times. Since this is a verbatim copy of https://github.com/mozilla/pdf.js/blob/master/src/shared/util.js#L321, I think it makes sense to just use that function instead.