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