Skip to content

Commit

Permalink
Fix URL decoding, fixes #25
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitaeverywhere committed Sep 8, 2019
1 parent c00791b commit f9e3ad1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

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

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "CacheClassExplorer",
"version": "1.21.1",
"version": "1.21.2",
"description": "Class Explorer for InterSystems Caché",
"directories": {
"test": "test"
Expand Down
4 changes: 4 additions & 0 deletions README.md → readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,7 @@ This will generate <code>build</code> directory, where you will find XML file re

See the detailed description and discussion [in this article](https://community.intersystems.com/node/407056).
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.

## License

[MIT](LICENSE) © [Nikita Savchenko](https://nikita.tk)
2 changes: 1 addition & 1 deletion src/web/js/CacheClassExplorer.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ CacheClassExplorer.prototype.restoreFromURL = function () {
var hash = (location.hash || "").substr(1),
obj;

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

if (obj.level)
this.classTree.SELECTED_LEVEL = obj.level;
Expand Down

0 comments on commit f9e3ad1

Please sign in to comment.