Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SWLab UI
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
SWD
SWLab UI
Commits
cd2bf9f2
Commit
cd2bf9f2
authored
7 months ago
by
minseok.park
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test html2canvas CORS
parent
cca941f9
Pipeline
#19966
passed with stages
in 3 minutes and 48 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
08-capture.js
src/js/08-capture.js
+1
-0
No files found.
src/js/08-capture.js
View file @
cd2bf9f2
...
...
@@ -22,6 +22,7 @@
scrollX
:
0
,
// reset scrollX for canvas capturing
scrollY
:
0
,
// reset scrollY for canvas capturing
scale
:
1.3
,
useCORS
:
true
,
}).
then
(
canvas
=>
{
screenshotImg
.
src
=
canvas
.
toDataURL
()
captureModal
.
style
.
display
=
'block'
...
...
This diff is collapsed.
Click to expand it.
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