innerken-js-utils
Advanced tools
Comparing version 1.0.12 to 1.0.13
@@ -293,5 +293,7 @@ "use strict"; | ||
var singleAudio = new Audio('http://i.cloudup.com/E021I9zUG3.m4a'); | ||
function play(url) { | ||
var audio = new Audio(url || 'http://i.cloudup.com/E021I9zUG3.m4a'); | ||
audio.play(); | ||
singleAudio.src = url || 'http://i.cloudup.com/E021I9zUG3.m4a'; | ||
singleAudio.play(); | ||
} | ||
@@ -298,0 +300,0 @@ /** |
{ | ||
"name": "innerken-js-utils", | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -225,5 +225,7 @@ import Swal from 'sweetalert2' | ||
const singleAudio = new Audio('http://i.cloudup.com/E021I9zUG3.m4a') | ||
export function play (url) { | ||
const audio = new Audio(url || 'http://i.cloudup.com/E021I9zUG3.m4a') | ||
audio.play() | ||
singleAudio.src = url || 'http://i.cloudup.com/E021I9zUG3.m4a' | ||
singleAudio.play() | ||
} | ||
@@ -230,0 +232,0 @@ |
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
20155
632