Skip to content

Commit

Permalink
fix(demo): Removed ES6 arrow function for better compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
rafa8626 committed Sep 28, 2018
1 parent ef21fb1 commit 98a8530
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>OpenPlayer</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="https://www.openplayerjs.com/img/favicon.png" type="image/x-icon">
<link rel="icon" href="https://www.openplayerjs.com/img/favicon.png" type="image/x-icon">
<link rel="stylesheet" href="../dist/openplayer.css">
<style>
body {
Expand Down Expand Up @@ -76,7 +76,7 @@ <h1>Audio Sample</h1>
var script = document.createElement('script');
script.src = '../dist/openplayer.js?rand=' + new Date().getTime();
script.async = true;
script.onload = () => {
script.onload = function () {
var script = document.createElement('script');
script.src = 'demo.js?rand=' + new Date().getTime();
script.async = true;
Expand Down

0 comments on commit 98a8530

Please sign in to comment.