This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* global chrome, MediaRecorder, FileReader */ | |
chrome.runtime.onConnect.addListener(port => { | |
let recorder = null | |
port.onMessage.addListener(msg => { | |
console.log(msg); | |
switch (msg.type) { | |
case 'REC_STOP': | |
console.log('Stopping recording') | |
if (!port.recorderPlaying || !recorder) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Setup script for hacking chrome devtools | |
# Source -> https://medium.com/p/8c8896f5cef3 | |
echo "Creating folder and initialize a git repo" | |
mkdir devtools-frontend && cd devtools-frontend | |
git init | |
echo "Adding chromium remote and initialize sparse checkout" | |
git remote add upstream https://chromium.googlesource.com/chromium/blink |