From 06398e8065784acb04501084a4120a8d0bc61f5e Mon Sep 17 00:00:00 2001 From: gorhill Date: Thu, 1 Jan 2015 21:14:53 -0500 Subject: [PATCH] code review for #456 --- platform/chromium/vapi-client.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/platform/chromium/vapi-client.js b/platform/chromium/vapi-client.js index 057687f..e4099a2 100644 --- a/platform/chromium/vapi-client.js +++ b/platform/chromium/vapi-client.js @@ -33,15 +33,15 @@ self.vAPI = self.vAPI || {}; +var chrome = self.chrome; +var vAPI = self.vAPI; + // https://github.com/gorhill/uBlock/issues/456 // Already injected? -if ( vAPI.vapiClient ) { +if ( vAPI.vapiClientInjected ) { return; } -vAPI.vapiClient = true; - -var chrome = self.chrome; -var vAPI = self.vAPI; +vAPI.vapiClientInjected = true; vAPI.chrome = true;