Re: [w3c/ServiceWorker] consider exposing a type attribute on Client (#1005)

I think it's a good idea to expose `type` to `Client` interface. Returned clients can be one of "window", "worker", and "sharedworker" indeed. For the type of the attribute, we can use the enum, `ClientType` preventing the getter from returning "all". Would it make sense?

```
interface Client
{
  readonly attribute ClientType type;
}
```

For naming, I give my five cents to keeping consistency to the existing names.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1005#issuecomment-261446225

Received on Friday, 18 November 2016 04:29:45 UTC