From dc6485d30a9afb3d85796766dad53f4f35f6f52e Mon Sep 17 00:00:00 2001 From: ccd0 Date: Fri, 15 Apr 2016 23:19:27 -0700 Subject: [PATCH] $.buildType -> $.platform --- src/main/Main.coffee | 4 ++-- src/platform/$.coffee | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/Main.coffee b/src/main/Main.coffee index ae4ea7ff5..4432b5fad 100644 --- a/src/main/Main.coffee +++ b/src/main/Main.coffee @@ -358,7 +358,7 @@ Main = textContent: "#{data.error.name or 'Error'}: #{data.error.message or 'see console for details'}" lines = data.error.stack?.match(/\d+(?=:\d+\)?$)/mg)?.join().replace(/^/, ' at ') or '' context = $.el 'div', - textContent: "(<%= meta.name %> <%= meta.fork %> v#{g.VERSION} #{$.buildType} on #{$.engine}#{lines})" + textContent: "(<%= meta.name %> <%= meta.fork %> v#{g.VERSION} #{$.platform} on #{$.engine}#{lines})" [message, error, context] reportLink: (errors) -> @@ -368,7 +368,7 @@ Main = details = """ [Please describe the steps needed to reproduce this error.] - Script: <%= meta.name %> <%= meta.fork %> v#{g.VERSION} #{$.buildType} + Script: <%= meta.name %> <%= meta.fork %> v#{g.VERSION} #{$.platform} User agent: #{navigator.userAgent} URL: #{location.href} diff --git a/src/platform/$.coffee b/src/platform/$.coffee index f9b92092f..0d661d064 100644 --- a/src/platform/$.coffee +++ b/src/platform/$.coffee @@ -356,7 +356,7 @@ $.engine = do -> return 'webkit' if /WebKit\//.test navigator.userAgent return 'gecko' if /Gecko\/|Goanna/.test navigator.userAgent # Goanna = Pale Moon 26+ -$.buildType = '<%= type %>'; +$.platform = '<%= type %>'; try localStorage.getItem 'x'