A platform for community discussion. Free, open, simple.
DEV: Correctly strip sourcemap URL from splash-screen js (#22879)
David Taylor7ecaf6295daf
diff --git a/app/helpers/splash_screen_helper.rb b/app/helpers/splash_screen_helper.rbindex af2ec3824d4..275c5452acd 100644--- a/app/helpers/splash_screen_helper.rb+++ b/app/helpers/splash_screen_helper.rb@@ -19,7 +19,7 @@ module SplashScreenHelperdef self.load_jsFile.read("#{Rails.root}/app/assets/javascripts/discourse/dist/assets/splash-screen.js").sub(- "//# sourceMappingURL=splash-screen.map\n",+ "//# sourceMappingURL=splash-screen.map","",)rescue Errno::ENOENT