Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions build/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
},
"browser_action": {
"default_icon": "assets/icon.png",
"default_popup": "src/receiver.html"
"default_popup": "static/receiver.html"
},
"options_ui": {
"page": "src/options.html",
"page": "static/options.html",
"chrome_style": true
},
"permissions": [
Expand Down
16 changes: 8 additions & 8 deletions build/src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ console.log('in src/background.js');
chrome.runtime.onInstalled.addListener(function (details) {
if (details.reason == 'install') {
chrome.tabs.create({
url: chrome.extension.getURL('src/install.html'),
url: chrome.extension.getURL('../static/install.html'),
active: true,
});
}
Expand Down Expand Up @@ -64,7 +64,7 @@ chrome.tabs.onActivated.addListener(function (e) {
OkToResume = false;
chrome.notifications.create('extfy1', {
type: 'basic',
iconUrl: 'assets/alert.png',
iconUrl: '../assets/alert.png',
title: 'ExtensionForYou',
message: 'You left the tab being recorded. Recording is paused.',
requireInteraction: true,
Expand All @@ -74,7 +74,7 @@ chrome.tabs.onActivated.addListener(function (e) {
OkToResume = false;
chrome.notifications.create('extfy1', {
type: 'basic',
iconUrl: 'assets/alert.png',
iconUrl: '../assets/alert.png',
title: 'ExtensionForYou',
message: 'You left the tab being recorded. Recording is paused.',
requireInteraction: true,
Expand All @@ -84,7 +84,7 @@ chrome.tabs.onActivated.addListener(function (e) {
OkToResume = true;
chrome.notifications.create('extfy1', {
type: 'basic',
iconUrl: 'assets/ok.png',
iconUrl: '../assets/ok.png',
title: 'ExtensionForYou',
message: 'You are now ready to resume recording.',
requireInteraction: true,
Expand Down Expand Up @@ -148,28 +148,28 @@ function StartRecording(stream) {
})
.catch(getUserMediaError);

chrome.browserAction.setIcon({ path: 'assets/icon_red.png' });
chrome.browserAction.setIcon({ path: '../assets/icon_red.png' });
}
function getUserMediaError(error) {
alert('src/background.js: getUserMedia() error: ', error);
}
function PauseRecording() {
rec.pause();
clearInterval(runner);
chrome.browserAction.setIcon({ path: 'assets/icon.png' });
chrome.browserAction.setIcon({ path: '../assets/icon.png' });
}
function ResumeRecording() {
rec.resume();
runner = setInterval(mainTimer, 1000);
chrome.browserAction.setIcon({ path: 'assets/icon_red.png' });
chrome.browserAction.setIcon({ path: '../assets/icon_red.png' });
chrome.notifications.clear('extfy1');
}
function StopRecording() {
chrome.browserAction.setBadgeText({ text: '' });
clearInterval(runner);
x = 1;
rec.stop();
chrome.browserAction.setIcon({ path: 'assets/icon.png' });
chrome.browserAction.setIcon({ path: '../assets/icon.png' });
chrome.notifications.clear('extfy1');
}
function mainTimer() {
Expand Down
13 changes: 7 additions & 6 deletions build/install.html → build/static/install.html
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,17 @@
</head>
<body>
<div id="overlayMsg">
<img id="arrow" src="assets/arrow.png" />
<img id="arrow" src="../assets/arrow.png" />
<div id="grantRequest">Allow Screen Recorder to use your microphone.</div>
</div>
<img id='logo' src='assets/icon.png' alt=’Screen Recorder' />
<img id='logo' src='../assets/icon.png' alt=’Screen Recorder' />
<h1>Welcome to Screen Recorder</h1>
<div id="instructions">
Tap the <img id='sampleIcon' src='assets/icon.png' alt=’Screen Recorder'
/> icon at the top right of your browser to start and stop recording.
Tap the <img id='sampleIcon' src='../assets/icon.png' alt=’Screen
Recorder' /> icon at the top right of your browser to start and stop
recording.
</div>
<img id="extensionArrow" src="assets/arrow_black.png" />
<script src="src/install.js"></script>
<img id="extensionArrow" src="../assets/arrow_black.png" />
<script src="../src/install.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion src/options.html → build/static/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
<div id="status"></div>
<button id="save">Save</button>

<script src="src/options.js"></script>
<script src="../src/options.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion src/receiver.html → build/static/receiver.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,6 @@ <h3 id="timer"></h3>
<button id="resume">Resume Recording</button>
<button id="stop">End Recording</button>
</div>
<script src="src/receiver.js"></script>
<script src="../src/receiver.js"></script>
</body>
</html>
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
},
"browser_action": {
"default_icon": "assets/icon.png",
"default_popup": "src/receiver.html"
"default_popup": "static/receiver.html"
},
"options_ui": {
"page": "src/options.html",
"page": "static/options.html",
"chrome_style": true
},
"permissions": [
Expand Down
7 changes: 4 additions & 3 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ rm -rf build
mkdir build
mkdir build/src
mkdir build/assets
mkdir build/static
cp src/background.js build/src/.
cp src/install.js build/src/.
cp manifest.json build/.
Expand All @@ -14,8 +15,8 @@ cp assets/arrow.png build/assets/.
cp assets/arrow_black.png build/assets/.
cp assets/icon.png build/assets/.
cp assets/icon_red.png build/assets/.
cp src/install.html build/.
cp src/receiver.html build/.
cp src/options.html build/.
cp static/install.html build/static/.
cp static/receiver.html build/static/.
cp static/options.html build/static/.
cd build
zip ../release.zip *
Binary file modified release.zip
Binary file not shown.
16 changes: 8 additions & 8 deletions src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ console.log('in src/background.js');
chrome.runtime.onInstalled.addListener(function (details) {
if (details.reason == 'install') {
chrome.tabs.create({
url: chrome.extension.getURL('src/install.html'),
url: chrome.extension.getURL('../static/install.html'),
active: true,
});
}
Expand Down Expand Up @@ -64,7 +64,7 @@ chrome.tabs.onActivated.addListener(function (e) {
OkToResume = false;
chrome.notifications.create('extfy1', {
type: 'basic',
iconUrl: 'assets/alert.png',
iconUrl: '../assets/alert.png',
title: 'ExtensionForYou',
message: 'You left the tab being recorded. Recording is paused.',
requireInteraction: true,
Expand All @@ -74,7 +74,7 @@ chrome.tabs.onActivated.addListener(function (e) {
OkToResume = false;
chrome.notifications.create('extfy1', {
type: 'basic',
iconUrl: 'assets/alert.png',
iconUrl: '../assets/alert.png',
title: 'ExtensionForYou',
message: 'You left the tab being recorded. Recording is paused.',
requireInteraction: true,
Expand All @@ -84,7 +84,7 @@ chrome.tabs.onActivated.addListener(function (e) {
OkToResume = true;
chrome.notifications.create('extfy1', {
type: 'basic',
iconUrl: 'assets/ok.png',
iconUrl: '../assets/ok.png',
title: 'ExtensionForYou',
message: 'You are now ready to resume recording.',
requireInteraction: true,
Expand Down Expand Up @@ -148,28 +148,28 @@ function StartRecording(stream) {
})
.catch(getUserMediaError);

chrome.browserAction.setIcon({ path: 'assets/icon_red.png' });
chrome.browserAction.setIcon({ path: '../assets/icon_red.png' });
}
function getUserMediaError(error) {
alert('src/background.js: getUserMedia() error: ', error);
}
function PauseRecording() {
rec.pause();
clearInterval(runner);
chrome.browserAction.setIcon({ path: 'assets/icon.png' });
chrome.browserAction.setIcon({ path: '../assets/icon.png' });
}
function ResumeRecording() {
rec.resume();
runner = setInterval(mainTimer, 1000);
chrome.browserAction.setIcon({ path: 'assets/icon_red.png' });
chrome.browserAction.setIcon({ path: '../assets/icon_red.png' });
chrome.notifications.clear('extfy1');
}
function StopRecording() {
chrome.browserAction.setBadgeText({ text: '' });
clearInterval(runner);
x = 1;
rec.stop();
chrome.browserAction.setIcon({ path: 'assets/icon.png' });
chrome.browserAction.setIcon({ path: '../assets/icon.png' });
chrome.notifications.clear('extfy1');
}
function mainTimer() {
Expand Down
13 changes: 7 additions & 6 deletions src/install.html → static/install.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,17 @@
</head>
<body>
<div id="overlayMsg">
<img id="arrow" src="assets/arrow.png" />
<img id="arrow" src="../assets/arrow.png" />
<div id="grantRequest">Allow Screen Recorder to use your microphone.</div>
</div>
<img id='logo' src='assets/icon.png' alt=’Screen Recorder' />
<img id='logo' src='../assets/icon.png' alt=’Screen Recorder' />
<h1>Welcome to Screen Recorder</h1>
<div id="instructions">
Tap the <img id='sampleIcon' src='assets/icon.png' alt=’Screen Recorder'
/> icon at the top right of your browser to start and stop recording.
Tap the <img id='sampleIcon' src='../assets/icon.png' alt=’Screen
Recorder' /> icon at the top right of your browser to start and stop
recording.
</div>
<img id="extensionArrow" src="assets/arrow_black.png" />
<script src="src/install.js"></script>
<img id="extensionArrow" src="../assets/arrow_black.png" />
<script src="../src/install.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion build/options.html → static/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
<div id="status"></div>
<button id="save">Save</button>

<script src="src/options.js"></script>
<script src="../src/options.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion build/receiver.html → static/receiver.html
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,6 @@ <h3 id="timer"></h3>
<button id="resume">Resume Recording</button>
<button id="stop">End Recording</button>
</div>
<script src="src/receiver.js"></script>
<script src="../src/receiver.js"></script>
</body>
</html>