overwolf.media.videos.addWatermark: something changed in handling relative files, breaking API

Related app/team name (not a must if you want to keep it private):
Issue Description:
Just until this week we could do:

overwolf.media.videos.addWatermark(videoPath, **'watermark/watermark-1440.png'**, {location: 'BottomRight'},console.log)

With this app folder structure in the extension directory:

Now we start getting this error:
{success: false, error: "Cannot find watermark file.", status: "error", reason: "Cannot find watermark file."}

Can you reproduce it (exact steps to reproduce):
Try adding a watermark file with relative position, e.g. adding it into the extension root directory and passing just the filename into the API

overwolf 0.187, but also seen in 0.185

  1. add a file watermark-1440.png to your app root folder
  2. in console try
    const someVideoUrl = … // add valid video path here
    overwolf.media.videos.addWatermark(someVideoUrl, ‘watermark-1440.png’, {location: ‘BottomRight’},console.log)

Do you currently have a workaround?
We can get the full file-path but it’s adding additional complexity that was not needed until now.
But am I using it wrong, or did something internally changed I’m not aware of?



Hey @Colorfulstan,

Currently, please continue with the workaround (relative path usage). The fix will be released in the next version, 0.189 (ETA).