Skip to content

Commit

Permalink
fix: replace jsdelivr link
Browse files Browse the repository at this point in the history
  • Loading branch information
lyl86 authored May 17, 2022
1 parent 5ecf4db commit 7f1152f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
* DPlayer for typecho
*
* @package DPlayer
* @author Volio
* @version 1.1.0
* @link https://niconiconi.org
* @author player
* @version 1.1.1
* @link https://niconiconi.net
*/
class DPlayer_Plugin implements Typecho_Plugin_Interface
{
Expand Down Expand Up @@ -45,7 +45,7 @@ public static function deactivate()
public static function playerHeader()
{
echo <<<EOF
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/dplayer/dist/DPlayer.min.css" />
<link rel="stylesheet" type="text/css" href="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/dplayer/1.25.0/DPlayer.min.css" />
EOF;
}

Expand All @@ -63,7 +63,7 @@ public static function playerFooter()
echo "<script type=\"text/javascript\" src=\"$url/plugin/flv.min.js\"></script>\n";
}
echo <<<EOF
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/dplayer/dist/DPlayer.min.js"></script>
<script type="text/javascript" src="https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/dplayer/1.25.0/DPlayer.min.js"></script>
<script type="text/javascript" src="$url/assets/player.js"></script>
EOF;
}
Expand Down

0 comments on commit 7f1152f

Please sign in to comment.