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

Merge this commit as the first step in order to fix the Swedish ad blocking #94

Merged
merged 1 commit into from
Apr 21, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ad_block_client_wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,9 @@ void AdBlockClientWrap::New(const FunctionCallbackInfo<Value>& args) {
const int argc = 1;
Local<Value> argv[argc] = { args[0] };
Local<Function> cons = Local<Function>::New(isolate, constructor);
args.GetReturnValue().Set(cons->NewInstance(argc, argv));
args.GetReturnValue().Set(
cons->NewInstance(isolate->GetCurrentContext(), argc, argv)
.ToLocalChecked());
}
}

Expand Down