Skip to content

Commit d74ae72

Browse files
committed
Merge pull request #15 from solidusjs/store-unique-paths
add hostname to path of collapse state in local storage. resolves #14
2 parents c360d6d + bdcef59 commit d74ae72

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

views/devpanel.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,13 @@ function processMainIncomingMessage(msg) {
6161

6262
function setupInspector(context) {
6363
if ((inspector instanceof InspectorJSON)) {
64-
inspector.view(context);
65-
} else {
66-
inspector = new InspectorJSON({
67-
element: 'pagecontext',
68-
url: context.url.path,
69-
json: context
70-
});
64+
destroyInspector();
7165
}
66+
inspector = new InspectorJSON({
67+
element: 'pagecontext',
68+
url: (context.url.hostname + context.url.path),
69+
json: context
70+
});
7271
}
7372

7473
function destroyInspector() {

0 commit comments

Comments
 (0)