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

Onlinecount documentation #2

Open
rubengmurray opened this issue Apr 5, 2024 · 1 comment
Open

Onlinecount documentation #2

rubengmurray opened this issue Apr 5, 2024 · 1 comment

Comments

@rubengmurray
Copy link

From the docs, it's not immediately clear how the onlinecount should be structured. Could you add an example for each tag and it's input?

I've added the tag onlinecount=":count" to the steam app tag but it's not showing anything

Is this correct?

<steam-app appid="1148810" onlinecount=":count"></steam-app>

N.B. It looks like it's correct based on this: https://github.com/danielbrendel/steamwidgets-js/blob/main/src/js/steam_app.js#L134, but I get no output. If there are no players online is it expected it would show blank?

Screenshot 2024-04-05 at 08 20 28
@rubengmurray
Copy link
Author

I think two lines above answers my question actually: https://github.com/danielbrendel/steamwidgets-js/blob/main/src/js/steam_app.js#L134

So if 0 there is no display. I get why this might be desirable, but it also means you don't know if you've implemented it correctly unless players are online.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant