✨ Features: - App iOS completa para leer manga sin publicidad - Scraper con WKWebView para manhwaweb.com - Sistema de descargas offline - Lector con zoom y navegación - Favoritos y progreso de lectura - Compatible con iOS 15+ y Sideloadly/3uTools 📦 Contenido: - Backend Node.js con Puppeteer (opcional) - App iOS con SwiftUI - Scraper de capítulos e imágenes - Sistema de almacenamiento local - Testing completo - Documentación exhaustiva 🧪 Prueba: Capítulo 789 de One Piece descargado exitosamente - 21 páginas descargadas - 4.68 MB total - URLs verificadas y funcionales 🎉 Generated with Claude Code (https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
30 lines
790 B
JavaScript
30 lines
790 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
/**
|
|
* Returns true iff the domain of hostname matches.
|
|
*
|
|
* Examples:
|
|
*
|
|
* ``` js
|
|
* dnsDomainIs("www.netscape.com", ".netscape.com")
|
|
* // is true.
|
|
*
|
|
* dnsDomainIs("www", ".netscape.com")
|
|
* // is false.
|
|
*
|
|
* dnsDomainIs("www.mcom.com", ".netscape.com")
|
|
* // is false.
|
|
* ```
|
|
*
|
|
*
|
|
* @param {String} host is the hostname from the URL.
|
|
* @param {String} domain is the domain name to test the hostname against.
|
|
* @return {Boolean} true iff the domain of the hostname matches.
|
|
*/
|
|
function dnsDomainIs(host, domain) {
|
|
host = String(host);
|
|
domain = String(domain);
|
|
return host.substr(domain.length * -1) === domain;
|
|
}
|
|
exports.default = dnsDomainIs;
|
|
//# sourceMappingURL=dnsDomainIs.js.map
|