* Toggle the inspector panel visibility
()
| 121 | * Toggle the inspector panel visibility |
| 122 | */ |
| 123 | toggle() { |
| 124 | if (!isInitialized) { |
| 125 | window.toast?.("Developer mode is not enabled"); |
| 126 | return; |
| 127 | } |
| 128 | if (erudaInstance?._isShow) { |
| 129 | this.hide(); |
| 130 | } else { |
| 131 | this.show(); |
| 132 | } |
| 133 | }, |
| 134 | |
| 135 | /** |
| 136 | * Destroy Eruda instance |