Skip to content

Commit 8e5c7e0

Browse files
committed
refactor(steam): simplify screenshot method assignments
1 parent 3d84545 commit 8e5c7e0

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

examples/steam.c3p

-28 Bytes
Binary file not shown.

src/instance.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2367,7 +2367,7 @@ function getInstanceJs(parentClass, addonTriggers, C3) {
23672367
}, this.unsupportedEngine)
23682368

23692369
// Save Screenshot from URL
2370-
_SaveScreenshotFromURLBase = this.wrap(super._SaveScreenshotFromURL, async (
2370+
_SaveScreenshotFromURL = this.wrap(super._SaveScreenshotFromURL, async (
23712371
/** @type {string} */ url,
23722372
/** @type {Tag} */ tag
23732373
) => {
@@ -2429,11 +2429,9 @@ function getInstanceJs(parentClass, addonTriggers, C3) {
24292429
}
24302430
}
24312431
}, this.unsupportedEngine)
2432-
_SaveScreenshotFromURL = this._SaveScreenshotFromURLBase
2433-
_SaveScreenshotFromURLSync = this._SaveScreenshotFromURLBase
24342432

24352433
// Add Screenshot to Library
2436-
_AddScreenshotToLibraryBase = this.wrap(super._AddScreenshotToLibrary, async (
2434+
_AddScreenshotToLibrary = this.wrap(super._AddScreenshotToLibrary, async (
24372435
/** @type {string} */ filename,
24382436
/** @type {string} */ thumbnailFilename,
24392437
/** @type {number} */ width,
@@ -2472,8 +2470,6 @@ function getInstanceJs(parentClass, addonTriggers, C3) {
24722470
}
24732471
}
24742472
}, this.unsupportedEngine)
2475-
_AddScreenshotToLibrary = this._AddScreenshotToLibraryBase
2476-
_AddScreenshotToLibrarySync = this._AddScreenshotToLibraryBase
24772473

24782474
// Steam DLC
24792475
_CheckDLCIsInstalled = this.wrap(super._CheckDLCIsInstalled, async (

0 commit comments

Comments
 (0)