view-binary-element
Advanced tools
+1
-1
| { | ||
| "name": "view-binary-element", | ||
| "version": "0.0.3", | ||
| "version": "0.0.4", | ||
| "description": "Native Web Component for previewing a few common types of binary files", | ||
@@ -5,0 +5,0 @@ "main": [ |
+7
-0
| # Change Log | ||
| ## [0.0.4](https://github.com/grtjn/view-binary-element/tree/0.0.4) (2020-03-16) | ||
| [Full Changelog](https://github.com/grtjn/view-binary-element/compare/0.0.3...0.0.4) | ||
| **Fixed bugs:** | ||
| - Robustness issue with quick remount of component [\#15](https://github.com/grtjn/view-binary-element/issues/15) | ||
| ## [0.0.3](https://github.com/grtjn/view-binary-element/tree/0.0.3) (2020-02-10) | ||
@@ -4,0 +11,0 @@ [Full Changelog](https://github.com/grtjn/view-binary-element/compare/0.0.2...0.0.3) |
+1
-1
| { | ||
| "name": "view-binary-element", | ||
| "version": "0.0.3", | ||
| "version": "0.0.4", | ||
| "description": "Native Web Component for previewing a few common types of binary files", | ||
@@ -5,0 +5,0 @@ "dependencies": {}, |
+5
-2
@@ -290,3 +290,4 @@ <template id="view-binary-template"> | ||
| if (this.shadowRoot) { | ||
| if (this.src !== undefined && this.type !== undefined) { | ||
| if (this.src !== undefined && this.type !== undefined | ||
| && this.src !== null && this.type !== null) { | ||
| this.$loading.hidden = true; | ||
@@ -302,3 +303,5 @@ this.$viewer.hidden = false; | ||
| var slot = this.shadowRoot.querySelector("#fallback"); | ||
| slot.parentNode.removeChild(slot); | ||
| if (slot) { | ||
| slot.parentNode.removeChild(slot); | ||
| } | ||
@@ -305,0 +308,0 @@ if (this.type.match(/^audio\//)) { |
3321024
0.01%