mirror of
https://github.com/silkimen/cordova-plugin-advanced-http.git
synced 2026-04-24 00:00:03 +08:00
replace all typeof calls
This commit is contained in:
@@ -67,7 +67,7 @@ var publicInterface = {
|
||||
throw new Error(messages.ADDING_COOKIES_NOT_SUPPORTED);
|
||||
}
|
||||
|
||||
if (typeof value !== 'string') {
|
||||
if (helpers.getTypeOf(value) !== 'String') {
|
||||
throw new Error(messages.HEADER_VALUE_MUST_BE_STRING);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user