Skip to content

Commit

Permalink
Ensure Continuity works on sites that have Boomerang already
Browse files Browse the repository at this point in the history
  • Loading branch information
nicjansma committed Oct 4, 2017
1 parent 765af07 commit 9f26a47
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions perfbar.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -930,6 +930,12 @@ var UW = unsafeWindow;
initialized = true;
}

// set config to enable Continuity
UW.BOOMR_config = UW.BOOMR_config || {};
UW.BOOMR_config.Continuity = UW.BOOMR_config.Continuity || {};
UW.BOOMR_config.Continuity.enabled = true;
UW.BOOMR_config.Continuity.waitAfterOnload = UW.CONTINUITY_WAIT_AFTER_ONLOAD;

// check to see if we can initialize as soon as the readystate changes
document.addEventListener('readystatechange', init, false);

Expand Down Expand Up @@ -1095,11 +1101,6 @@ if (!UW.cssobj) {

// 3. Boomerang plugins
function initEmbeddedBoomerang() {
//
// Boomerang Config
//
UW.BOOMR_config = { Continuity: { enabled: true, waitAfterOnload: UW.CONTINUITY_WAIT_AFTER_ONLOAD }};

//
// Check if Boomerang is already on the page
//
Expand Down

0 comments on commit 9f26a47

Please sign in to comment.