From de25e333e17f05140b82793776dbce51fdec296d Mon Sep 17 00:00:00 2001 From: Simon Parri Date: Wed, 19 Mar 2025 00:00:30 -0500 Subject: Turn into an extension --- legacy/RDFManifestConverter.sys.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'legacy/RDFManifestConverter.sys.mjs') diff --git a/legacy/RDFManifestConverter.sys.mjs b/legacy/RDFManifestConverter.sys.mjs index 12abd27..dc8df42 100644 --- a/legacy/RDFManifestConverter.sys.mjs +++ b/legacy/RDFManifestConverter.sys.mjs @@ -1,12 +1,11 @@ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +var InstallRDF = (function() { "use strict"; var EXPORTED_SYMBOLS = ["InstallRDF"]; -import {RDFDataSource} from "resource://legacy/RDFDataSource.sys.mjs"; - const RDFURI_INSTALL_MANIFEST_ROOT = "urn:mozilla:install-manifest"; function EM_R(aProperty) { @@ -39,7 +38,7 @@ class Manifest { } } -export class InstallRDF extends Manifest { +return class InstallRDF extends Manifest { _readProps(source, obj, props) { for (let prop of props) { let val = getProperty(source, prop); @@ -107,3 +106,4 @@ export class InstallRDF extends Manifest { return result; } } +})() -- cgit v1.2.3