Skip to content

Commit 4ab2ce8

Browse files
committed
Tweak the README, and throw an error if the base64 config is attempted
1 parent 14dcd2a commit 4ab2ce8

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,9 @@
33
This is an experimental JavaScript client for the [Sentry][1] realtime event
44
logging and aggregation platform.
55

6-
The full and minified distribution files include code from another
7-
open-source project:
8-
9-
* parseUri from [parseUri][5] (included in minified distribution)
10-
116
The stacktrace generation was inspired by the [javascript-stacktrace][4]
12-
project, and includes heavily modified portions of that project's code.
7+
project, and includes heavily modified portions of that project's code. The
8+
full and minified distribution files include [parseUri][5].
139

1410
[1]: http://getsentry.com/
1511
[4]: https://github.com/eriwen/javascript-stacktrace

src/raven.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
//
55
// Requires:
66
// * Either jQuery (>1.5) or Zepto.js.
7+
// * parseUri (included in the full and minified distribution files)
78

89
(function(){
910
// Save a reference to the global object (`window` in the browser, `global`
@@ -40,6 +41,8 @@
4041
if (config.indexOf('http') === 0) {
4142
// new-style DSN configuration
4243
config = Raven.parseDSN(config);
44+
} else {
45+
throw "Base64 encoded config is no longer supported - use DSN";
4346
}
4447
}
4548
$.each(config, function(i, option) {

0 commit comments

Comments
 (0)