Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #30503 from jaoo/1171915
Browse files Browse the repository at this point in the history
Bug 1171915 - about:serviceworkers in b2g should use originAttributes when calling ServiceWorkerManager
  • Loading branch information
rvandermeulen committed Jun 29, 2015
2 parents 55beef5 + 1ab70ca commit 3722c4d
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -104,7 +104,7 @@ define(function(require) {
var self = this;
this.listeners[scope] = {
update: function() {
self.update(scope);
self.update(principal, scope);
},
unregister: function() {
self.unregister(principal, scope);
Expand Down Expand Up @@ -199,9 +199,10 @@ define(function(require) {
});
},

update: function(scope) {
update: function(principal, scope) {
this.iacRequest({
name: 'update',
principal: principal,
scope: scope
}).catch(e => {
console.error('Could not update service worker ' + e);
Expand Down

0 comments on commit 3722c4d

Please sign in to comment.