Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
html2pdf
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Lukas Niegsch
html2pdf
Commits
5ffd21aa
Commit
5ffd21aa
authored
Jun 16, 2022
by
lukas.niegsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enabled logging events
parent
689977b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
chromium.js
chromium.js
+7
-1
index.html
index.html
+3
-1
No files found.
chromium.js
View file @
5ffd21aa
...
...
@@ -53,7 +53,13 @@ class HeadlessChromium
resolve
(
data
.
result
)
}
resolve
(
data
)
if
(
'
method
'
in
data
)
{
console
.
log
(
"
event:
"
+
data
.
method
)
resolve
(
data
.
method
)
}
reject
(
data
)
}
server
.
onerror
=
(
error
)
=>
{
...
...
index.html
View file @
5ffd21aa
...
...
@@ -41,7 +41,9 @@
--disable-web-security
--user-data-dir=/var/tmp/chrome
The last two flags can be ommited if we find another way to enable
Cross-Origin Resource Sharing.
Cross-Origin Resource Sharing. Then load this page with a browser
search param:
http://localhost:8080/?browser=http://localhost:9222
*/
var
searchParams
=
(
new
URL
(
window
.
location
.
href
)).
searchParams
var
browser
=
new
HeadlessChromium
(
searchParams
.
get
(
"
browser
"
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment