Skip to content

Commit

Permalink
Merge pull request #42 from MindscapeHQ/indexof-fix
Browse files Browse the repository at this point in the history
Fix cannot call method 'indexOf' of undefined error in Tracekit
  • Loading branch information
fundead committed May 1, 2014
2 parents 330cf71 + fb13033 commit d7d1533
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 6 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ Limited support is available for IE 8 and 9 - errors will only be saved if the r
## Release History
- 1.8.2 - Fixed bug in Tracekit which caused 'Cannot call method indexOf' of undefined error
- 1.8.1 - Added meaningful message for Ajax errors, fixed debugmode logging bug
- 1.8.0 - Add Offline Saving feature; add support for WinJS
- 1.7.2 - Fixed tags not being included when error caught from global window.onerror handler
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "raygun4js",
"version": "1.8.1",
"version": "1.8.2",
"homepage": "http://raygun.io",
"authors": [
"Mindscape <[email protected]>"
Expand Down
5 changes: 4 additions & 1 deletion dist/raygun.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Raygun4js - v1.8.1 - 2014-04-15
/*! Raygun4js - v1.8.2 - 2014-05-01
* https://github.com/MindscapeHQ/raygun4js
* Copyright (c) 2014 MindscapeHQ; Licensed MIT */
;(function(window, undefined) {
Expand Down Expand Up @@ -344,6 +344,9 @@ TraceKit.computeStackTrace = (function computeStackTraceWrapper() {
// URL needs to be able to fetched within the acceptable domain. Otherwise,
// cross-domain errors will be triggered.
var source = '';

url = url || "";

if (url.indexOf(document.domain) !== -1) {
source = loadSource(url);
}
Expand Down
4 changes: 2 additions & 2 deletions dist/raygun.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "raygun",
"title": "Raygun4js",
"description": "Raygun.io plugin for JavaScript",
"version": "1.8.1",
"version": "1.8.2",
"homepage": "https://github.com/MindscapeHQ/raygun4js",
"author": {
"name": "MindscapeHQ",
Expand Down
2 changes: 1 addition & 1 deletion raygun4js.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>raygun4js</id>
<version>1.8.1</version>
<version>1.8.2</version>
<title>Raygun4js</title>
<authors>Mindscape Limited</authors>
<owners>Mindscape Limited</owners>
Expand Down
3 changes: 3 additions & 0 deletions tracekit/tracekit.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,9 @@ TraceKit.computeStackTrace = (function computeStackTraceWrapper() {
// URL needs to be able to fetched within the acceptable domain. Otherwise,
// cross-domain errors will be triggered.
var source = '';

url = url || "";

if (url.indexOf(document.domain) !== -1) {
source = loadSource(url);
}
Expand Down

0 comments on commit d7d1533

Please sign in to comment.