diff options
author | Pawel Spychalski (DzikuVx) <pspychalski@gmail.com> | 2021-06-13 20:47:12 +0300 |
---|---|---|
committer | Pawel Spychalski (DzikuVx) <pspychalski@gmail.com> | 2021-06-13 20:47:12 +0300 |
commit | 0735671ae64fb52b8c06c8aa58665124be48f4d2 (patch) | |
tree | 2cef74dfe2fed3559af2ba67261621e9fe5d1bb4 /js/helpers.js | |
parent | 1d84fa0061260997122cd58d3c5715a85b353497 (diff) |
Update STM32DFU procedure for H7 support
Diffstat (limited to 'js/helpers.js')
-rw-r--r-- | js/helpers.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/js/helpers.js b/js/helpers.js index ecf72651..25ff1bae 100644 --- a/js/helpers.js +++ b/js/helpers.js @@ -1,6 +1,18 @@ /*global $*/ 'use strict'; +function checkChromeRuntimeError() { + if (chrome.runtime.lastError) { + console.error( + `Chrome API Error: ${chrome.runtime.lastError.message}.\n Traced ${ + new Error().stack + }` + ); + return true; + } + return false; +} + function constrain(input, min, max) { if (input < min) { |