From 0f001bb0569a2167c1ccc76e174cea2aa353581e Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sun, 26 Sep 2021 18:44:41 +1000 Subject: [PATCH] Adjust injection of flutter build --- app/Http/Controllers/BaseController.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Http/Controllers/BaseController.php b/app/Http/Controllers/BaseController.php index 0cc06230a1..2da7852bed 100644 --- a/app/Http/Controllers/BaseController.php +++ b/app/Http/Controllers/BaseController.php @@ -765,6 +765,9 @@ class BaseController extends Controller if(request()->has('build')) { $build = request()->input('build'); } + elseif(Ninja::isHosted()){ + return 'main.dart.js'; + } switch ($build) { case 'wasm': @@ -776,13 +779,10 @@ class BaseController extends Controller case 'next': return 'main.next.dart.js'; case 'profile': - return 'main.profile.dart.js'; + return 'main.profile.dart.js'; default: + return 'main.foss.dart.js'; - if(Ninja::isSelfHost()) - return 'main.foss.dart.js'; - - return 'main.dart.js'; } }