Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/clients-get-client-types-worker.js

Issue 2884843004: [ServiceWorker] Add wpt tests to verify Client.type as 'worker' (Closed)
Patch Set: Add assert_not_equals undefined Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 onmessage = function(e) {
2 if (e.data.cmd == 'GetClientId') {
3 fetch('clientId')
4 .then(function(response) {
5 return response.text();
6 })
7 .then(function(text) {
8 e.data.port.postMessage({clientId: text});
9 });
10 }
11 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698