Skip to content

Commit e3b9755

Browse files
committed
fix: updater
1 parent a6ac7a4 commit e3b9755

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/underscript.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ function downloadScript(version) {
4747
}
4848

4949
function bundleScript(depends, script) {
50+
if (typeof script !== 'string') {
51+
script = `${script}`;
52+
}
53+
regex.lastIndex = 0; // Reset the regex, just in case
5054
const GM_info = {
5155
scriptHandler: 'UnderScriptApp',
5256
script: {

0 commit comments

Comments
 (0)