Skip to content

Commit

Permalink
fix(createproxy): allow proxy under non-eval csp
Browse files Browse the repository at this point in the history
  • Loading branch information
kwonoj authored and surma committed May 11, 2019
1 parent 1bc77f0 commit 3c58ba8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/comlink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ function createProxy<T>(
ep: Endpoint,
path: (string | number | symbol)[] = []
): Remote<T> {
const proxy: Function = new Proxy(new Function(), {
const proxy: Function = new Proxy(function() {}, {
get(_target, prop) {
if (prop === "then") {
if (path.length === 0) {
Expand Down

0 comments on commit 3c58ba8

Please sign in to comment.