Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Inject BB10 WebWorks script in bootstrap

  • Loading branch information...
commit 877fec1ac4b10f86a16f60fc709638d1e5afad54 1 parent 861ff3d
@bryanhiggins bryanhiggins authored
Showing with 10 additions and 3 deletions.
  1. +10 −3 lib/scripts/bootstrap-blackberry.js
View
13 lib/scripts/bootstrap-blackberry.js
@@ -20,11 +20,18 @@
*/
document.addEventListener("DOMContentLoaded", function () {
+ var wwjs;
switch(require('cordova/platform').runtime()) {
case 'qnx':
- document.addEventListener("webworksready", function () {
- require('cordova/channel').onNativeReady.fire();
- });
+ wwjs = document.createElement("script");
+ wwjs.type = "text/javascript";
+ wwjs.src = "local:///chrome/webworks.js";
+ wwjs.onload = function () {
+ document.addEventListener("webworksready", function () {
+ require('cordova/channel').onNativeReady.fire();
+ });
+ };
+ document.getElementsByTagName("head")[0].appendChild(wwjs);
break;
case 'air':
require('cordova/channel').onNativeReady.fire();
Please sign in to comment.
Something went wrong with that request. Please try again.