Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.
brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus
// | |
// serviceWorkerService.js | |
// | |
'use strict'; | |
angular.module('myApp.serviceWorker', []) | |
.service('serviceWorkerService', ['$q', '$http', '$location', '$timeout', | |
function($q, $http, $location, $timeout) { | |
var noTokenError = new Error('No Instance ID token available'); | |
var noPermissionError = new Error('Unable to get permission to notify'); |
This content moved here: https://exploringjs.com/impatient-js/ch_arrays.html#quickref-arrays
if (window.location.origin !== "https://www.instagram.com") { | |
window.alert( | |
"Hey! You need to be on the instagram site before you run the code. I'm taking you there now but you're going to have to run the code into the console again.", | |
); | |
window.location.href = "https://www.instagram.com"; | |
console.clear(); | |
} | |
const fetchOptions = { | |
credentials: "include", |