$.buildType -> $.platform
This commit is contained in:
parent
f19882e61a
commit
dc6485d30a
@ -358,7 +358,7 @@ Main =
|
|||||||
textContent: "#{data.error.name or 'Error'}: #{data.error.message or 'see console for details'}"
|
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 ''
|
lines = data.error.stack?.match(/\d+(?=:\d+\)?$)/mg)?.join().replace(/^/, ' at ') or ''
|
||||||
context = $.el 'div',
|
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]
|
[message, error, context]
|
||||||
|
|
||||||
reportLink: (errors) ->
|
reportLink: (errors) ->
|
||||||
@ -368,7 +368,7 @@ Main =
|
|||||||
details = """
|
details = """
|
||||||
[Please describe the steps needed to reproduce this error.]
|
[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}
|
User agent: #{navigator.userAgent}
|
||||||
URL: #{location.href}
|
URL: #{location.href}
|
||||||
|
|
||||||
|
|||||||
@ -356,7 +356,7 @@ $.engine = do ->
|
|||||||
return 'webkit' if /WebKit\//.test navigator.userAgent
|
return 'webkit' if /WebKit\//.test navigator.userAgent
|
||||||
return 'gecko' if /Gecko\/|Goanna/.test navigator.userAgent # Goanna = Pale Moon 26+
|
return 'gecko' if /Gecko\/|Goanna/.test navigator.userAgent # Goanna = Pale Moon 26+
|
||||||
|
|
||||||
$.buildType = '<%= type %>';
|
$.platform = '<%= type %>';
|
||||||
|
|
||||||
try
|
try
|
||||||
localStorage.getItem 'x'
|
localStorage.getItem 'x'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user