mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-18 01:36:08 +08:00
ui: update import source
This commit is contained in:
1 parent
a3fb2cbd47
commit
40edf15782
2 files changed
+3
-3
No files matched your search
@@ -2,7 +2,7 @@
|
||||
/* eslint-disable prefer-destructuring */
|
||||
|
||||
const { randomUUID } = require('crypto');
|
||||
const { escapeHtml } = require('vj/../../node_modules/markdown-it/lib/common/utils');
|
||||
const { escapeHtml } = require('markdown-it/lib/common/utils');
|
||||
|
||||
/* eslint-disable no-restricted-properties */
|
||||
const ytRegex = /^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/;
|
||||
@@ -120,7 +120,7 @@ module.exports = function videoPlugin(md) {
|
||||
+ ' }); </script>';
|
||||
}
|
||||
if (service === 'pdf') {
|
||||
if (videoID.startsWith('file://')) videoID += '?noDisposition=1';
|
||||
if (videoID.startsWith('file://')) videoID += videoID.includes('?') ? '&noDisposition=1' : '?noDisposition=1';
|
||||
return `\
|
||||
<object classid="clsid:${randomUUID().toUpperCase()}">
|
||||
<param name="SRC" value="${videoID}" >
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/ui-default",
|
||||
"version": "4.27.14",
|
||||
"version": "4.27.15",
|
||||
"author": "undefined <i@undefined.moe>",
|
||||
"license": "AGPL-3.0",
|
||||
"main": "hydro.js",
|
||||
|
||||
Reference in new issue
Block a user