Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion packages/rum-legacy/verification/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,14 @@ <h1>RUM legacy build verification</h1>
function showEnvironment() {
var mode =
typeof document.documentMode === 'undefined' ? '(none - documentMode needs IE8+, or not Trident at all)' : document.documentMode
/* The protocol decides two results on this page and neither failure names it: over file://
the browser refuses to write the session cookie, and there is no origin to send a
same-origin request to. Both then read as a broken SDK. */
var protocol = window.location.protocol
var protocolNote =
protocol === 'file:' ? 'file: (serve this page over http(s) - see the notes below)' : protocol
var pairs = [
['location.protocol', protocolNote],
['document.documentMode', String(mode)],
['navigator.userAgent', navigator.userAgent],
[
Expand Down Expand Up @@ -290,7 +297,12 @@ <h1>RUM legacy build verification</h1>
loadBundle(function (loaded) {
if (!loaded || !window.FC_RUM) {
record('The bundle parses and loads', 'fail', 'window.FC_RUM is ' + typeof window.FC_RUM)
note('Stopped: nothing else can be checked while the script does not load.')
note(
'Stopped: fc-rum-legacy.js did not load. It has to be served from the same ' +
'directory as this page. This repository does not carry the built bundle - run ' +
'the package build, then open this page through scripts/verification-server.js, ' +
'which serves the two together.'
)
return
}
record('The bundle parses and loads', 'pass', 'FC_RUM.version = ' + window.FC_RUM.version)
Expand Down
Loading