Skip to content
Snippets Groups Projects
Select Git revision
  • 1e6be847c5a32e476b8c17bcda615b9071801990
  • master default protected
  • th/disable-sssd-pac
  • fix-samba-replication
4 results

.yamllint

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    video.novtt.js 1.66 MiB
    /**
     * @license
     * Video.js 7.6.5 <http://videojs.com/>
     * Copyright Brightcove, Inc. <https://www.brightcove.com/>
     * Available under Apache License Version 2.0
     * <https://github.com/videojs/video.js/blob/master/LICENSE>
     *
     * Includes vtt.js <https://github.com/mozilla/vtt.js>
     * Available under Apache License Version 2.0
     * <https://github.com/mozilla/vtt.js/blob/master/LICENSE>
     */
    
    (function (global, factory) {
      typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('global/window'), require('global/document')) :
      typeof define === 'function' && define.amd ? define(['global/window', 'global/document'], factory) :
      (global = global || self, global.videojs = factory(global.window, global.document));
    }(this, function (window$1, document) {
      window$1 = window$1 && window$1.hasOwnProperty('default') ? window$1['default'] : window$1;
      document = document && document.hasOwnProperty('default') ? document['default'] : document;
    
      var version = "7.6.5";
    
      /**
       * @file create-logger.js
       * @module create-logger
       */
    
      var history = [];
      /**
       * Log messages to the console and history based on the type of message
       *
       * @private
       * @param  {string} type
       *         The name of the console method to use.
       *
       * @param  {Array} args
       *         The arguments to be passed to the matching console method.
       */
    
      var LogByTypeFactory = function LogByTypeFactory(name, log) {
        return function (type, level, args) {
          var lvl = log.levels[level];
          var lvlRegExp = new RegExp("^(" + lvl + ")$");
    
          if (type !== 'log') {
            // Add the type to the front of the message when it's not "log".
            args.unshift(type.toUpperCase() + ':');
          } // Add console prefix after adding to history.
    
    
          args.unshift(name + ':'); // Add a clone of the args at this point to history.
    
          if (history) {
            history.push([].concat(args));
          } // If there's no console then don't try to output messages, but they will
          // still be stored in history.
    
    
          if (!window$1.console) {
            return;
          } // Was setting these once outside of this function, but containing them
          // in the function makes it easier to test cases where console doesn't exist
          // when the module is executed.
    
    
          var fn = window$1.console[type];
    
          if (!fn && type === 'debug') {
            // Certain browsers don't have support for console.debug. For those, we
            // should default to the closest comparable log.