Skip to content

Commit

Permalink
fix: 插件执行过程中报错
Browse files Browse the repository at this point in the history
  • Loading branch information
msojocs committed Nov 6, 2024
1 parent ccd7ac6 commit ef0caf5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
- bilibili: update to v1.15.2.3770
- electron: update to v33.0.2

## 🐞 修复

- 插件:执行过程中报错。

# 🌈 v1.14.2-1 / 2024-09-22

## 🚀 功能
Expand Down
20 changes: 10 additions & 10 deletions extensions/area_unlimit/hook.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
const url = new URL(location.href)
const fileName = url.pathname.substring(1).split('.')[0]
console.log("[hook]: hook.js", fileName)
const ext = chrome.extension
const runtiime = chrome.runtime
const URLS = {
md5: chrome.extension.getURL(`utils/md5.js`),
login: chrome.extension.getURL(`hook/login.js`),
search: chrome.extension.getURL(`hook/search.js`),
player: chrome.extension.getURL(`hook/player.js`),
biliapp: chrome.extension.getURL(`hook/biliapp.js`),
commonJS: chrome.extension.getURL(`hook/common.js`),
commonCSS: chrome.extension.getURL(`hook/common.css`),
RoamingPage: chrome.extension.getURL(`hook/RoamingPage.html`),
PlayerEnhance: chrome.extension.getURL(`hook/PlayerEnhance.html`),
md5: runtiime.getURL(`utils/md5.js`),
login: runtiime.getURL(`hook/login.js`),
search: runtiime.getURL(`hook/search.js`),
player: runtiime.getURL(`hook/player.js`),
biliapp: runtiime.getURL(`hook/biliapp.js`),
commonJS: runtiime.getURL(`hook/common.js`),
commonCSS: runtiime.getURL(`hook/common.css`),
RoamingPage: runtiime.getURL(`hook/RoamingPage.html`),
PlayerEnhance: runtiime.getURL(`hook/PlayerEnhance.html`),
}

var commonJS = document.createElement('script');
Expand Down

0 comments on commit ef0caf5

Please sign in to comment.