screen-share / element-capture

https://screen-share.github.io/element-capture/
19 stars 6 forks source link

Queue a global task to resolve a Promise. #45

Closed markafoltz closed 1 month ago

markafoltz commented 2 months ago

Fixes Issue #43.

Promises can only be resolved (or rejected) on the main event loop. Queue a global task to do so when the Promise returned by restrictTo() resolves.


Preview | Diff

markafoltz commented 2 months ago

@eladalon1983, please merge at your convenience.

You might want to crib from other specs that run the spec through tidy-html, so the formatting stays consistent. Example: https://github.com/w3c/presentation-api/blob/main/Makefile

eladalon1983 commented 1 month ago

@eladalon1983, please merge at your convenience.

You might want to crib from other specs that run the spec through tidy-html, so the formatting stays consistent. Example: https://github.com/w3c/presentation-api/blob/main/Makefile

Thanks. I guess another step is necessary to have the Makefile trigger as a presubmit action or something? Maybe this or something similar?