Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
6d6c6b6f
Commit
6d6c6b6f
authored
Nov 24, 2020
by
Eduardo Sanz García
Committed by
Eduardo
Nov 24, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix type issue raised by typescript 4.1.2
parent
19777a21
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
index.js
src/annotator/index.js
+2
-1
No files found.
src/annotator/index.js
View file @
6d6c6b6f
...
@@ -82,6 +82,7 @@ function init() {
...
@@ -82,6 +82,7 @@ function init() {
/**
/**
* Returns a Promise that resolves when the document has loaded (but subresources
* Returns a Promise that resolves when the document has loaded (but subresources
* may still be loading).
* may still be loading).
* @returns {Promise<void>}
*/
*/
function
documentReady
()
{
function
documentReady
()
{
return
new
Promise
(
resolve
=>
{
return
new
Promise
(
resolve
=>
{
...
@@ -90,7 +91,7 @@ function documentReady() {
...
@@ -90,7 +91,7 @@ function documentReady() {
}
}
// nb. `readystatechange` may be emitted twice, but `resolve` only resolves
// nb. `readystatechange` may be emitted twice, but `resolve` only resolves
// on the first call.
// on the first call.
document
.
addEventListener
(
'readystatechange'
,
resolve
);
document
.
addEventListener
(
'readystatechange'
,
()
=>
resolve
()
);
});
});
}
}
...
...
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