Skip to content

Commit

Permalink
Merge pull request #9 from bt0r/feature/1.2.3
Browse files Browse the repository at this point in the history
Release 1.2.3
  • Loading branch information
bt0r authored Aug 1, 2020
2 parents b70c49f + 69a0003 commit 8420ed7
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 19 deletions.
2 changes: 1 addition & 1 deletion manifest_chrome.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "NoteFlix",
"version": "1.2.1",
"version": "1.2.3",
"description": "Permet d'avoir les scores et avis AlloCiné/SensCritique sur Netflix",
"icons": {
"48": "images/logo-48.png",
Expand Down
2 changes: 1 addition & 1 deletion manifest_firefox.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "NoteFlix",
"version": "1.2.1",
"version": "1.2.3",
"description": "Permet d'avoir les scores et avis AlloCiné/SensCritique sur Netflix",
"icons": {
"48": "images/logo-48.png",
Expand Down
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const isLoaded = (mutation) => {
}

const observer = new MutationObserver((mutations) => {
console.log(mutations)
// Only listen mutation of added jawBones
const jawboneMutation = mutations.filter(mutation => {
return clickedOnVideoJawBone(mutation) ||
Expand All @@ -50,4 +51,5 @@ const observer = new MutationObserver((mutations) => {
manager.refreshRatings()
}
})
observer.observe(document.querySelector('.mainView'), observerConfig)

observer.observe(document.getElementById('appMountPoint'), observerConfig)
16 changes: 8 additions & 8 deletions webpack_chrome.config.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
const path = require('path');
const CopyPlugin = require('copy-webpack-plugin');
const path = require('path')
const CopyPlugin = require('copy-webpack-plugin')

module.exports = {
entry: {
index: './src/index.js',
background: './src/background.js',
index: './src/index.js',
background: './src/background.js'
},
plugins: [
new CopyPlugin([
{ from: 'images/logo*', to: '.' },
{ from: 'manifest_chrome.json', to: 'manifest.json'}
]),
{ from: 'manifest_chrome.json', to: 'manifest.json' }
])
],
output: {
path: path.resolve(__dirname, 'dist/chrome/main'),
filename: '[name]/index.js',
filename: '[name]/index.js'
}
};
}
16 changes: 8 additions & 8 deletions webpack_firefox.config.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
const path = require('path');
const CopyPlugin = require('copy-webpack-plugin');
const path = require('path')
const CopyPlugin = require('copy-webpack-plugin')

module.exports = {
entry: {
index: './src/index.js',
background: './src/background.js',
index: './src/index.js',
background: './src/background.js'
},
plugins: [
new CopyPlugin([
{ from: 'images/logo*', to: '.' },
{ from: 'manifest_firefox.json', to: 'manifest.json'}
]),
{ from: 'manifest_firefox.json', to: 'manifest.json' }
])
],
output: {
path: path.resolve(__dirname, 'dist/firefox/main'),
filename: '[name]/index.js',
filename: '[name]/index.js'
}
};
}

0 comments on commit 8420ed7

Please sign in to comment.