mirax-player
Advanced tools
Comparing version 1.1.4-beta.3 to 1.1.4-beta.4
const progressColor = (color) => { | ||
const styleElement = document.createElement('style'); | ||
styleElement.textContent = `.progress-bar::-webkit-progress-value { background-color: ${color}; }`; | ||
document.head.appendChild(styleElement); | ||
return styleElement; | ||
const injectProgress = document.createElement('style'); | ||
injectProgress.textContent = `.progress-bar::-webkit-progress-value { background-color: ${color}; }`; | ||
document.head.appendChild(injectProgress); | ||
return injectProgress; | ||
}; | ||
export default progressColor; | ||
export default progressColor; |
@@ -1,2 +0,2 @@ | ||
export const progressFrame = (color) => { | ||
const progressFrame = (color) => { | ||
const injectFrame = document.createElement('style'); | ||
@@ -7,2 +7,3 @@ injectFrame.textContent = `.progress-bar::-webkit-progress-bar { background-color: ${color}; }`; | ||
}; | ||
export default progressFrame; | ||
@@ -12,4 +12,5 @@ //index.js - This is your package's entry point | ||
// Re-export the progressColor function as both default and named export | ||
// Re-export the function as both default and named export | ||
export { default as progressColor } from './dist/progressColor'; | ||
export { default as progressFrame } from './dist/progressFrame'; | ||
@@ -16,0 +17,0 @@ |
{ | ||
"name": "mirax-player", | ||
"version": "1.1.4-beta.3", | ||
"version": "1.1.4-beta.4", | ||
"description": "A simple video player for react", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17885
304