Skip to content

Commit

Permalink
fix(*): fix errors for pub delivery
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultBee committed Feb 13, 2024
1 parent 373a791 commit 04cb031
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/src/web/apivideo_uploader_web.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class ApiVideoUploaderPlugin extends ApiVideoUploaderPlatform {
Future<void> injectJS() async {
document.body?.nodes.add(ScriptElement()
..type = 'text/javascript'
..innerHtml = '''
..innerHtml = '''
// fix JS module loading - https://github.com/flutter/flutter/issues/126713
if (typeof window.define == 'function') {
delete window.define.amd;
Expand Down
2 changes: 1 addition & 1 deletion lib/video_uploader.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export 'src/video_uploader_mobile_platform.dart';

/// Progress indicator callback
/// [progress] is a value between 0 and 1
typedef void OnProgress(double progress);
typedef OnProgress = void Function(double progress);

ApiVideoUploaderPlatform get _uploaderPlatform {
return ApiVideoUploaderPlatform.instance;
Expand Down

0 comments on commit 04cb031

Please sign in to comment.