diff --git a/README.md b/README.md index 31ffa5e9..298f7817 100644 --- a/README.md +++ b/README.md @@ -95,7 +95,7 @@ function setupWebViewJavascriptBridge(callback) { window.WVJBCallbacks = [callback]; var WVJBIframe = document.createElement('iframe'); WVJBIframe.style.display = 'none'; - WVJBIframe.src = 'https://__bridge_loaded__'; + WVJBIframe.src = 'https://wvjb-bridge_loaded'; document.documentElement.appendChild(WVJBIframe); setTimeout(function() { document.documentElement.removeChild(WVJBIframe) }, 0) } diff --git a/WebViewJavascriptBridge/WebViewJavascriptBridgeBase.h b/WebViewJavascriptBridge/WebViewJavascriptBridgeBase.h index 54d80acc..083fe0b7 100755 --- a/WebViewJavascriptBridge/WebViewJavascriptBridgeBase.h +++ b/WebViewJavascriptBridge/WebViewJavascriptBridgeBase.h @@ -9,8 +9,8 @@ #define kOldProtocolScheme @"wvjbscheme" #define kNewProtocolScheme @"https" -#define kQueueHasMessage @"__wvjb_queue_message__" -#define kBridgeLoaded @"__bridge_loaded__" +#define kQueueHasMessage @"wvjb-queue-message" +#define kBridgeLoaded @"wvjb-bridge-loaded" typedef void (^WVJBResponseCallback)(id responseData); typedef void (^WVJBHandler)(id data, WVJBResponseCallback responseCallback); diff --git a/WebViewJavascriptBridge/WebViewJavascriptBridge_JS.m b/WebViewJavascriptBridge/WebViewJavascriptBridge_JS.m index 670a552f..535cefde 100644 --- a/WebViewJavascriptBridge/WebViewJavascriptBridge_JS.m +++ b/WebViewJavascriptBridge/WebViewJavascriptBridge_JS.m @@ -38,7 +38,7 @@ var messageHandlers = {}; var CUSTOM_PROTOCOL_SCHEME = 'https'; - var QUEUE_HAS_MESSAGE = '__wvjb_queue_message__'; + var QUEUE_HAS_MESSAGE = 'wvjb-queue-message'; var responseCallbacks = {}; var uniqueId = 1;