×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Isaac Dettman
Added: Nov 4, 2016 10:18 PM
Views: 5
Javascript feature detection for 'fetch' method
  1. if(self.fetch) {
  2.     // run my fetch request here
  3. } else {
  4.     // do something with XMLHttpRequest?
  5. }