radialIndicator icon indicating copy to clipboard operation
radialIndicator copied to clipboard

IE8 causes following script to stop

Open cnsgithub opened this issue 8 years ago • 0 comments

Hi, Due to errors in IE8 further scripts are not properly processed

Starts here: Object doesn't support this property or method , L40, C9

Not supporting IE8 is fine, but it should be checked for support ( it doesnt have canvas for instance ) and then the library should stop trying to do things in order to keep the console clean of errors and allow the scripts to continue

Thanks

Suggestion

  var document = window.document;
//insert here
  var elem = document.createElement('canvas');
    if(!!(elem.getContext && elem.getContext('2d')) == false){
        console.warn("No Canvas support stopping radialIndicator.js");
        return;
    }

cnsgithub avatar Jun 01 '16 12:06 cnsgithub