mirror of
https://github.com/SoPat712/videospeed.git
synced 2025-08-21 18:08:46 -04:00
fix: replace deprecated createShadowRoot with attachShadow (#386)
fix #384
This commit is contained in:

committed by
Ilya Grigorik

parent
0256ccb593
commit
86ccce0a86
@@ -114,7 +114,7 @@ chrome.runtime.sendMessage({}, function(response) {
|
|||||||
wrapper.classList.add('vsc-hidden');
|
wrapper.classList.add('vsc-hidden');
|
||||||
}
|
}
|
||||||
|
|
||||||
var shadow = wrapper.createShadowRoot();
|
var shadow = wrapper.attachShadow({ mode: 'open' });
|
||||||
var shadowTemplate = `
|
var shadowTemplate = `
|
||||||
<style>
|
<style>
|
||||||
@import "${chrome.runtime.getURL('shadow.css')}";
|
@import "${chrome.runtime.getURL('shadow.css')}";
|
||||||
|
Reference in New Issue
Block a user