Skip to content

Commit

Permalink
fix(build): also grant VM's spelling of getResourceUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
ROpdebee committed Nov 12, 2021
1 parent b341a25 commit fe4a7e0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build/plugin-userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,12 @@ class MetadataGenerator {
}

if (bareName.toLowerCase() === 'getresourceurl') {
return ['GM_getResourceURL', 'GM.getResourceUrl'];
return [
'GM_getResourceURL',
'GM.getResourceUrl',
// Violentmonkey alternative spelling
'GM.getResourceURL',
];
}

return ['GM_', 'GM.'].map((prefix) => prefix + bareName);
Expand Down

0 comments on commit fe4a7e0

Please sign in to comment.