@krx3d/tizentube2 1.13.410 → 1.14.570
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/service.js +2 -17
- package/dist/userScript.js +2 -14
- package/package.json +1 -1
package/dist/service.js
CHANGED
|
@@ -50302,22 +50302,7 @@ var dial = peerDial;
|
|
|
50302
50302
|
var express = express$1;
|
|
50303
50303
|
var cors = libExports;
|
|
50304
50304
|
var app = express();
|
|
50305
|
-
|
|
50306
|
-
var corsOptions = {
|
|
50307
|
-
origin: function origin(_origin, callback) {
|
|
50308
|
-
if (!_origin) {
|
|
50309
|
-
return callback(null, true);
|
|
50310
|
-
}
|
|
50311
|
-
if (allowedOrigins.indexOf(_origin) !== -1) {
|
|
50312
|
-
return callback(null, true);
|
|
50313
|
-
}
|
|
50314
|
-
return callback(new Error('Not allowed by CORS'));
|
|
50315
|
-
},
|
|
50316
|
-
methods: 'GET,HEAD,PUT,PATCH,POST,DELETE',
|
|
50317
|
-
credentials: true,
|
|
50318
|
-
optionsSuccessStatus: 204
|
|
50319
|
-
};
|
|
50320
|
-
app.use(cors(corsOptions));
|
|
50305
|
+
app.use(cors());
|
|
50321
50306
|
var PORT = 8085;
|
|
50322
50307
|
var apps = {
|
|
50323
50308
|
"YouTube": {
|
|
@@ -50329,7 +50314,7 @@ var apps = {
|
|
|
50329
50314
|
launch: function launch(launchData) {
|
|
50330
50315
|
var tbPackageId = tizen.application.getAppInfo().packageId;
|
|
50331
50316
|
tizen.application.launchAppControl(new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/view", null, null, null, [new tizen.ApplicationControlData("module", [JSON.stringify({
|
|
50332
|
-
moduleName: '@
|
|
50317
|
+
moduleName: '@krx3d/tizentube2',
|
|
50333
50318
|
moduleType: 'npm',
|
|
50334
50319
|
args: launchData
|
|
50335
50320
|
})])]), "".concat(tbPackageId, ".TizenBrewStandalone"));
|