Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(macros/AvailableInWorkers): add one more possible case #10966

Closed
wants to merge 1 commit into from

Conversation

skyclouds2001
Copy link
Contributor

Summary

following up #10029 and relates with mdn/content#31675

when update {{AvailableInWorkers}} macros usage in mdn/content#31675, I found there is more possible case that current {{AvailableInWorkers}} macros can not cover:

  • only in Worker (Dedicated Worker, Shared Worker, Service Worker), but not in Window
    • : possible situations includes WorkerNavigator WorkerLocation and more

Problem

add one more usage case for {{AvailableInWorkers}}

Solution

can be used as {{AvailableInWorkers("worker")}}


Screenshots

Before

None

After

None


How did you test this change?

Manually tested

@github-actions github-actions bot added the macros tracking issues related to kumascript macros label Apr 22, 2024
@skyclouds2001 skyclouds2001 deleted the AvailableInWorkers branch April 22, 2024 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
macros tracking issues related to kumascript macros
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant