pr16 failed:SyntaxError: Unexpected token :

  • Code
    var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };

    use this code on krpanoplugin,pr13 is ok ,but pr15-16,ERROR: parsing './plugins/test.js' failed:SyntaxError: Unexpected token :,what's wrong with it?

  • Hi,

    all plugin code would need to be within the krpanoplugin function itself, anything outside will be stripped away.

    That's new since 1.19-pr15 and maybe that's the problem in your case...

    Best regards,
    Klaus

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!