Skip to content

Commit f9e3ad1

Browse files
Fix URL decoding, fixes #25
1 parent c00791b commit f9e3ad1

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2015 InterSystems Corp.
3+
Copyright (c) 2015-2019 Nikita Savchenko <https://nikita.tk>.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "CacheClassExplorer",
3-
"version": "1.21.1",
3+
"version": "1.21.2",
44
"description": "Class Explorer for InterSystems Caché",
55
"directories": {
66
"test": "test"

README.md renamed to readme.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,7 @@ This will generate <code>build</code> directory, where you will find XML file re
5151

5252
See the detailed description and discussion [in this article](https://community.intersystems.com/node/407056).
5353
Have a look at [InterSystems Developer Community](community.intersystems.com) to learn about InterSystems technology, sharing solutions and staying up-to-date on the latest developments.
54+
55+
## License
56+
57+
[MIT](LICENSE) © [Nikita Savchenko](https://nikita.tk)

src/web/js/CacheClassExplorer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ CacheClassExplorer.prototype.restoreFromURL = function () {
212212
var hash = (location.hash || "").substr(1),
213213
obj;
214214

215-
try { obj = JSON.parse(hash); } catch (e) { obj = {}; }
215+
try { obj = JSON.parse(decodeURIComponent(hash)); } catch (e) { console.error(e); obj = {}; }
216216

217217
if (obj.level)
218218
this.classTree.SELECTED_LEVEL = obj.level;

0 commit comments

Comments
 (0)