mirror of https://github.com/gorhill/uBlock.git
this fixes #417
This commit is contained in:
parent
5019f241df
commit
a7c9134bf6
|
@ -21,8 +21,6 @@
|
||||||
|
|
||||||
/* global µBlock, vAPI, YaMD5 */
|
/* global µBlock, vAPI, YaMD5 */
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
|
@ -30,6 +28,8 @@
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
var onMessage = function(request, sender, callback) {
|
var onMessage = function(request, sender, callback) {
|
||||||
|
@ -38,7 +38,8 @@ var onMessage = function(request, sender, callback) {
|
||||||
// Async
|
// Async
|
||||||
switch ( request.what ) {
|
switch ( request.what ) {
|
||||||
case 'getAssetContent':
|
case 'getAssetContent':
|
||||||
µb.assets.getLocal(request.url, callback);
|
// https://github.com/gorhill/uBlock/issues/417
|
||||||
|
µb.assets.get(request.url, callback);
|
||||||
return;
|
return;
|
||||||
|
|
||||||
case 'loadUbiquitousAllowRules':
|
case 'loadUbiquitousAllowRules':
|
||||||
|
@ -98,6 +99,8 @@ vAPI.messaging.setup(onMessage);
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
var µb = µBlock;
|
var µb = µBlock;
|
||||||
|
@ -208,6 +211,8 @@ vAPI.messaging.listen('popup.js', onMessage);
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
var µb = µBlock;
|
var µb = µBlock;
|
||||||
|
@ -256,6 +261,8 @@ vAPI.messaging.listen('contentscript-start.js', onMessage);
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
var µb = µBlock;
|
var µb = µBlock;
|
||||||
|
@ -385,6 +392,8 @@ vAPI.messaging.listen('contentscript-end.js', onMessage);
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
var µb = µBlock;
|
var µb = µBlock;
|
||||||
|
@ -446,6 +455,8 @@ vAPI.messaging.listen('element-picker.js', onMessage);
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
var µb = µBlock;
|
var µb = µBlock;
|
||||||
|
@ -539,6 +550,8 @@ vAPI.messaging.listen('3p-filters.js', onMessage);
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
var µb = µBlock;
|
var µb = µBlock;
|
||||||
|
@ -582,6 +595,8 @@ vAPI.messaging.listen('1p-filters.js', onMessage);
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
var µb = µBlock;
|
var µb = µBlock;
|
||||||
|
@ -628,6 +643,8 @@ vAPI.messaging.listen('whitelist.js', onMessage);
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
var µb = µBlock;
|
var µb = µBlock;
|
||||||
|
@ -725,6 +742,8 @@ vAPI.messaging.listen('stats.js', onMessage);
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
var µb = µBlock;
|
var µb = µBlock;
|
||||||
|
|
Loading…
Reference in New Issue