module TiktokPassport::Marionette::Javascript

Defined in:

tiktok_passport/marionette/javascript.cr

Constant Summary

JAVASCRIPT_ESCAPE_MAP = {"\\" => "\\\\", "</" => "<\\/", "\r\n" => "\\n", "\n" => "\\n", "\r" => "\\n", "\"" => "\\\"", "'" => "\\'", "`" => "\\`", "$" => "\\$", "\u2028" => "&#x2028;", "\u2029" => "&#x2029;"}
JAVASCRIPT_ESCAPE_REGEX = /(\\|<\/|\r\n|\x{2028}|\x{2029}|[\n\r"']|[`]|[$])/

Class Method Summary

Class Method Detail

def self.escape_javascript(script : String) #

[View source]
def self.navigator_info : String #

[View source]
def self.sign(url : String) : String #

[View source]