$.buildType -> $.platform

This commit is contained in:
ccd0 2016-04-15 23:19:27 -07:00
parent f19882e61a
commit dc6485d30a
2 changed files with 3 additions and 3 deletions

View File

@ -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}

View File

@ -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'