support Youtube noCookie Mode
This commit is contained in:
@ -395,6 +395,8 @@ const defaults = {
|
||||
enabled: false,
|
||||
publisherId: '',
|
||||
},
|
||||
|
||||
noCookie: false,
|
||||
};
|
||||
|
||||
export default defaults;
|
||||
|
@ -19,7 +19,7 @@ export const types = {
|
||||
*/
|
||||
export function getProviderByUrl(url) {
|
||||
// YouTube
|
||||
if (/^(https?:\/\/)?(www\.)?(youtube\.com|youtu\.?be)\/.+$/.test(url)) {
|
||||
if (/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(url)) {
|
||||
return providers.youtube;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user