Skip to content
This repository has been archived by the owner on Oct 11, 2020. It is now read-only.

Commit

Permalink
Port Chromium changes to Edge
Browse files Browse the repository at this point in the history
  • Loading branch information
nicole-ashley committed Sep 5, 2016
1 parent 02a090d commit 9081d89
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion platform/edge/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 2,

"name": "uBlock Origin",
"version": "1.7.7",
"version": "1.9.5.100",

"default_locale": "en",
"description": "__MSG_extShortDesc__",
Expand Down
17 changes: 17 additions & 0 deletions platform/edge/vapi-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,23 @@ if ( vAPI.sessionId ) {

/******************************************************************************/

var referenceCounter = 0;

vAPI.lock = function() {
referenceCounter += 1;
};

vAPI.unlock = function() {
referenceCounter -= 1;
if ( referenceCounter === 0 ) {
// Eventually there will be code here to flush the javascript code
// from this file out of memory when it ends up unused.

}
};

/******************************************************************************/

vAPI.executionCost = {
start: function(){},
stop: function(){}
Expand Down

0 comments on commit 9081d89

Please sign in to comment.