This repository has been archived by the owner on Sep 17, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- update to electron 6, using latest electron-builder - update to latest webrecorder - add new preload.js - add flag to allow autoplay - bump version to 1.7.0
- Loading branch information
Showing
7 changed files
with
626 additions
and
347 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
const { ipcRenderer } = require('electron'); | ||
|
||
const wr_msg_handler = '___$wr_msg_handler___$$'; | ||
|
||
class IPCHandler { | ||
constructor() { | ||
this.on_message = null; | ||
|
||
ipcRenderer.on('wr-message', (event) => { | ||
if (this.on_message) { | ||
this.on_message(event.data); | ||
} | ||
}); | ||
} | ||
|
||
send(msg) { | ||
ipcRenderer.sendToHost('wr-message', msg); | ||
} | ||
} | ||
|
||
window[wr_msg_handler] = new IPCHandler(); | ||
|
||
|
||
document.addEventListener('drop', (evt) => { | ||
evt.preventDefault(); | ||
|
||
const filename = evt.dataTransfer.files[0].path; | ||
const state = { | ||
wb_type: 'open', | ||
filename | ||
}; | ||
|
||
ipcRenderer.sendToHost('open', state); | ||
}); | ||
|
||
document.addEventListener('dragover', (evt) => { | ||
evt.preventDefault(); | ||
evt.stopPropagation(); | ||
}); |
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
This file was deleted.
Oops, something went wrong.
Submodule webrecorder
updated
from 5d58b3 to 193e9c
Oops, something went wrong.