Skip to content

Commit 718966f

Browse files
author
almottier
committed
fix senscritique adding deferMs option
Signed-off-by: almottier <anonymous@example.com>
1 parent eff86e8 commit 718966f

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

src/content/engines/integrations/senscritique.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
(function(){
22
if (!window.__servarrEngines) window.__servarrEngines = { list: [], helpers: {} };
3-
3+
44
var Def = window.__servarrEngines.helpers.DefaultEngine;
55

66
var TV = Def({
@@ -11,10 +11,11 @@
1111
containerSelector: 'h1',
1212
insertWhere: 'prepend',
1313
iconStyle: 'width: 30px; margin: 0 10px 0 0;',
14-
getSearch: function(_el,doc){
14+
deferMs: 2000,
15+
getSearch: function(_el,doc){
1516
var n=doc.querySelector('h1');
16-
17-
return (n && (n.textContent||'').trim())||'';
17+
18+
return (n && (n.textContent||'').trim())||'';
1819
}
1920
});
2021

@@ -26,9 +27,10 @@
2627
containerSelector: 'h1',
2728
insertWhere: 'prepend',
2829
iconStyle: 'width: 30px; margin: 0 10px 0 0;',
29-
getSearch: function(_el,doc){
30-
var n=doc.querySelector('h1');
31-
return (n && (n.textContent||'').trim())||'';
30+
deferMs: 2000,
31+
getSearch: function(_el,doc){
32+
var n=doc.querySelector('h1');
33+
return (n && (n.textContent||'').trim())||'';
3234
}
3335
});
3436

0 commit comments

Comments
 (0)