(tool, state)
| 824 | } |
| 825 | |
| 826 | setToolEnabled(tool, state) { |
| 827 | if (tool.buttonId) { |
| 828 | const btn = this.getElemByIdSafe(tool.buttonId); |
| 829 | if (state) { |
| 830 | btn.removeAttribute('disabled'); |
| 831 | } else { |
| 832 | btn.setAttribute('disabled', 'true'); |
| 833 | } |
| 834 | } |
| 835 | } |
| 836 | getAsUri(type, quality) { |
| 837 | let realQuality = quality; |
| 838 | if (realQuality === undefined) { |