mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1224570 - [Service Workers Panel] Service Workers panel fails to show registered service workers after restart. r=fabrice
This commit is contained in:
parent
4dbbd6a937
commit
3573b841f0
@ -29,17 +29,12 @@ function serializeServiceWorkerInfo(aServiceWorkerInfo) {
|
||||
|
||||
let result = {};
|
||||
|
||||
Object.keys(aServiceWorkerInfo).forEach(property => {
|
||||
if (typeof aServiceWorkerInfo[property] == "function") {
|
||||
return;
|
||||
}
|
||||
if (property === "principal") {
|
||||
result.principal = {
|
||||
origin: aServiceWorkerInfo.principal.originNoSuffix,
|
||||
originAttributes: aServiceWorkerInfo.principal.originAttributes
|
||||
};
|
||||
return;
|
||||
}
|
||||
result.principal = {
|
||||
origin: aServiceWorkerInfo.principal.originNoSuffix,
|
||||
originAttributes: aServiceWorkerInfo.principal.originAttributes
|
||||
};
|
||||
|
||||
["scope", "scriptSpec"].forEach(property => {
|
||||
result[property] = aServiceWorkerInfo[property];
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user