Skip to content

Commit

Permalink
Callback with error if doc is not fully active (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoscaceres committed Jul 27, 2021
1 parent 981581e commit de05002
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -544,8 +544,12 @@ <h2>
method steps are:
</p>
<ol class="algorithm">
<li>[=Request position=], passing |successCallback|, |errorCallback|,
|options|, and (repeats) false.
<li>If the [=current settings object=]'s [=associated `Document`=] is
not [=Document/fully active=], [=call back with error=]
|errorCallback| and {{GeolocationPositionError/POSITION_UNAVAILABLE}}.
</li>
<li>Otherwise, [=request position=], passing |successCallback|,
|errorCallback|, |options|, and (repeats) false.
</li>
<li>Return `undefined`.
</li>
Expand All @@ -562,6 +566,16 @@ <h2>
method steps are:
</p>
<ol class="algorithm">
<li>If the [=current settings object=]'s [=associated `Document`=] is
not [=Document/fully active=]:
<ol>
<li>[=Call back with error=] |errorCallback| and
{{GeolocationPositionError/POSITION_UNAVAILABLE}}.
</li>
<li>Return an [=implementation-defined=] {{long}}.
</li>
</ol>
</li>
<li>Let |watchId:long| be [=request position=], passing
|successCallback|, |errorCallback|, |options|, and (repeats) true.
</li>
Expand Down Expand Up @@ -595,10 +609,6 @@ <h2>
optionally (and only if |repeats| is true) a |previousId:long|.
</p>
<ol class="algorithm">
<li>If the [=current settings object=]'s [=associated `Document`=] is
not [=Document/fully active=], return an [=implementation-defined=]
{{long}}.
</li>
<li>Let |watchTasks:Set| be [=this=]'s
{{Geolocation/[[watchTasks]]}}.
</li>
Expand Down

0 comments on commit de05002

Please sign in to comment.