Created
September 23, 2020 20:40
-
-
Save jasonLaster/c41c71c38b50246de12a2a7936ed5144 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| diff --git a/devtools/startup/DevToolsStartup.jsm b/devtools/startup/DevToolsStartup.jsm | |
| index 830b9ae1f7c6..93f8262c38db 100644 | |
| --- a/devtools/startup/DevToolsStartup.jsm | |
| +++ b/devtools/startup/DevToolsStartup.jsm | |
| @@ -713,8 +713,12 @@ DevToolsStartup.prototype = { | |
| const channel = new WebChannel("record-replay", urlForWebChannel); | |
| channel.listen((id, message) => { | |
| - const { user } = message; | |
| - saveRecordingUser(user); | |
| + if (message.type == "update-user") { | |
| + const { user } = message; | |
| + saveRecordingUser(user); | |
| + } | |
| + if (message.type == "record-url") { | |
| + } | |
| }); | |
| } | |
| }, | |
| @@ -1441,6 +1445,7 @@ function saveRecordingInDB(description) { | |
| const body = { | |
| user_id: user.id, | |
| recording_id: description.recordingId, | |
| + id: description.recordingId, | |
| url: description.url, | |
| title: description.title, | |
| duration: description.duration, | |
| @@ -1649,6 +1654,8 @@ function setNextRecordingURLCallback(callback) { | |
| function reloadAndRecordTab(gBrowser) { | |
| let url = gBrowser.currentURI.spec; | |
| + // this is all here | |
| + | |
| if (gNextRecordingURLCallback) { | |
| gNextRecordingURLCallback(url); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment