web-api-manager/background_scripts/bootstrap.js
2017-09-12 17:34:25 -05:00

25 lines
No EOL
509 B
JavaScript

/*jslint es6: true*/
/*global chrome*/
(function () {
"use strict";
let onMsgHandler;
onMsgHandler = function (request, ignore, sendResponse) {
let requestingDoman = request.domain;
if (request.request !== "rules") {
sendResponse(null);
return false;
}
sendResponse({
rules: ["fetch"]
});
return false;
};
chrome.runtime.peteStuff = "P";
chrome.runtime.onMessage.addListener(onMsgHandler);
}());