Skip to content

Commit cacbf11

Browse files
committed
Instead of calling contentWindow.Utilities.parseParameters(), pass in the contentWindow’s location.
1 parent 0a0b54a commit cacbf11

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

MotionMark/resources/extensions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ class Utilities {
3838
return output;
3939
}
4040

41-
static parseParameters()
41+
static parseParameters(windowLocation)
4242
{
43-
return this._parse(window.location.search.substr(1), "&");
43+
return this._parse(windowLocation.search.substr(1), "&");
4444
}
4545

4646
static parseArguments(str)

MotionMark/resources/runner/benchmark-runner.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class BenchmarkRunner {
116116

117117
var options = { complexity: test.complexity };
118118
Utilities.extendObject(options, this._client.options);
119-
Utilities.extendObject(options, Utilities.parseParameters());
119+
Utilities.extendObject(options, Utilities.parseParameters(contentWindow.location));
120120

121121
var benchmark = new contentWindow.benchmarkClass(options);
122122
document.body.style.backgroundColor = benchmark.backgroundColor();

0 commit comments

Comments
 (0)