File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,5 @@ const COMMANDS: &[&str] = &[
77] ;
88
99fn main ( ) {
10- tauri_plugin:: Builder :: new ( COMMANDS )
11- . global_api_script_path ( "./src/polyfill.js" )
12- . build ( ) ;
10+ tauri_plugin:: Builder :: new ( COMMANDS ) . build ( ) ;
1311}
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ struct MidiState {
2323type State = Arc < Mutex < MidiState > > ;
2424
2525const PLUGIN_NAME : & str = "midi" ;
26+ const RUNTIME_POLYFILL : & str = include_str ! ( "polyfill.js" ) ;
2627
2728fn get_inputs ( midi_in : & midir:: MidiInput ) -> Result < Vec < String > , String > {
2829 midi_in
@@ -196,6 +197,7 @@ pub fn init<R: Runtime>() -> TauriPlugin<R> {
196197
197198 Builder :: new ( PLUGIN_NAME )
198199 . invoke_handler ( builder. invoke_handler ( ) )
200+ . js_init_script ( RUNTIME_POLYFILL . into ( ) )
199201 . setup ( move |app, _| {
200202 app. manage ( State :: default ( ) ) ;
201203
You can’t perform that action at this time.
0 commit comments