stealthmonkey99 / OctoPrint-PWMBuzzer

M300 gcode handler (PWM buzzer via GPIO) for OctoPrint
6 stars 1 forks source link

Composer panel's "Copy Gcode to Clipboard" functionality fails #1

Closed stealthmonkey99 closed 2 years ago

stealthmonkey99 commented 2 years ago

This feature worked in a locally run instance but fails when connecting to the octoprint client over http:

packed_plugins.js?51c9a222:6373 Uncaught TypeError: Cannot read properties of undefined (reading 'writeText')
    at M300Composer.self.copy (packed_plugins.js?51c9a222:6373:37)
    at HTMLAnchorElement.<anonymous> (packed_libs.js?1fe9f29c:133:4368)
    at HTMLAnchorElement.dispatch (packed_libs.js?1fe9f29c:13:43090)
    at HTMLAnchorElement.v.handle (packed_libs.js?1fe9f29c:13:41074)
stealthmonkey99 commented 2 years ago

resolved by eefc210