We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4fa7c24 commit d7e5476Copy full SHA for d7e5476
1 file changed
views/devpanel.js
@@ -54,7 +54,7 @@ function processMainIncomingMessage(msg) {
54
}
55
56
function setupInspector(context) {
57
- if ((inspector instanceof InspectorJSON) && (inspector.page)) {
+ if ((inspector instanceof InspectorJSON)) {
58
inspector.view(context);
59
} else {
60
inspector = new InspectorJSON({
@@ -68,6 +68,7 @@ function setupInspector(context) {
68
function destroyInspector() {
69
if (inspector instanceof InspectorJSON) {
70
inspector.destroy();
71
+ inspector = {}; // inspector.destroy() doesn't completely reset the object
72
73
74
0 commit comments