Skip to content

Commit 308eeda

Browse files
committed
download audio and video
1 parent 007a4d5 commit 308eeda

File tree

9 files changed

+305
-76
lines changed

9 files changed

+305
-76
lines changed

.idea/workspace.xml

Lines changed: 112 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

images/audio.png

7.01 KB
Loading

images/video.png

2.33 KB
Loading

manifest.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"128": "/images/icon128.png"
1919
},
2020
"web_accessible_resources": [
21+
"/images/audio.png",
2122
"/images/download.png"
2223
],
2324
"background": {

src/defaults.js

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,7 @@
11
((ls) => {
22
'use strict';
33

4-
// One-time reset of settings
5-
chrome.runtime.onInstalled.addListener((details) => {
6-
if (details.reason === 'install') {
7-
// Open the options page after install
8-
chrome.tabs.create({url: '/views/options.html'});
9-
} else if (
10-
details.reason === 'update' &&
11-
/^(((0|1)\..*)|(2\.(0|1)(\..*)?))$/.test(details.previousVersion)
12-
) {
13-
// Clear data from versions before 2.1
14-
ls.clear();
15-
}
16-
});
17-
18-
// Popup
19-
const defaults = {columns: 2};
4+
const defaults = {columns:4};
205

216
for (const option in defaults) {
227
if (ls[option] === undefined) {

0 commit comments

Comments
 (0)